Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all, I have a short question...

 

I want to make a program in VB.NET with a WEbbrowser control on it, that is used to open a webpage in.

 

This is a php page. I want to sent POST variables to this page with the webbrowser control but this doesn't seem to work! please help!

 

This is my button click sub:

 

   Private Sub btnGO_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGO.Click
       browser.Navigate2(txtUrl.Text, , , "test=SOMETEXT")
   End Sub

 

 

txtURL.text is a url E.g. http://www.mysite.com/index.php

 

MSDN says that the 4th parameter is the postdata so there I say test=SOMETEXT as a string that i want to send to the index.php.

 

This is my index.php

 

<?
echo "TEST   : ".$_POST['test'];
echo "TEST1 : ".$_GET['test'];
echo "TEST2 : ".$_REQUEST['test'];

phpinfo();
?>

 

But nothing is printed on the page.. as if there isn't any postdata! How does this work!?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...