willemschwarte Posted September 1, 2004 Posted September 1, 2004 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!? Quote
*Experts* Bucky Posted September 6, 2004 *Experts* Posted September 6, 2004 Click me, man! Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.