willemschwarte
Member
- Joined
- Apr 17, 2003
- Messages
- 6
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 doesnt seem to work! please help!
This is my button click sub:
txtURL.text is a url E.g. 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
But nothing is printed on the page.. as if there isnt any postdata! How does this work!?
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 doesnt seem to work! please help!
This is my button click sub:
Code:
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. 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
Code:
<?
echo "TEST : ".$_POST[test];
echo "TEST1 : ".$_GET[test];
echo "TEST2 : ".$_REQUEST[test];
phpinfo();
?>
But nothing is printed on the page.. as if there isnt any postdata! How does this work!?