[RESOLVED] Submit this Webbrowser form programmically?
Hi, im trying to submit this form which is on a webpage, loaded into webbrowser1
Code:
<form name=form1 method=post action=talk.php>
<input type="hidden" name="i" value="1">
<input type="hidden" name="input1" value="">
<font color=red face="verdana,arial" size=2></font></i></td><td width=70%><font size="2" face="verdana,arial" color="#000000">Hello! What is your name?</font></td></tr>
<tr><td valign=top><font face=verdana size=2>Input: </font></td><td valign=top><input type="text" name="input" size="55" class="text" style="width: 170px">
<input type="submit" name="Submit" value="Submit" class="knop">
</form>
Ive tried the following, but none seam to work
Code:
WebBrowser1.Document.Forms(1).Submit
WebBrowser1.Document.Forms(0).Submit
WebBrowser1.Document.All("form1").Submit
WebBrowser1.Document.Forms("form1").Submit
WebBrowser1.Document.Form1.Submit
Do you think its because the form name (in the HTML code) isnt in quotes?
Grateful if anyone could help :)
Thanks.
Ive tried using
Re: Submit this Webbrowser form programmically?
Wait guys, ive found a solution :D
Code:
WebBrowser1.Document.All("submit").Click
;D
how do i mark this as solved?
Re: Submit this Webbrowser form programmically?
Pull down the Thread Tools menu, and click the Mark As Resolved menu item. :)
Re: [RESOLVED] Submit this Webbrowser form programmically?
is there a way to detect when a certain button from within the webbrowser control is actually clicked?