How to submit a form that has an image button?

G

Guest

Guest
hey im using VB6 for a little project. im using webbrowser and im submitting a form, and i can write to the textboxes like so<br />
<br />
WebBrowser1.Document. Forms (1).Item(3).Value = "hello" (i had to put the spaces in to make it display on here)<br />
<br />
but i cant seem to submit the form, the html looks like this<br />
<br />
<form method="post" action="messag ing.pb?session=&acti on=compose"><input type= "hidden" name= "submit" value= "TRUE"><br />
.......{html for the input boxes}......<div style="text-align left"><input type="image" class= "submitImg" src="/templates/ default/ image/ buttons/ sendbttn.gif"><br />
<br />
so how do i click the send message button?<br />
<br />
there is another form on the page (form(0)) and i can submit that in a number of ways but non of them work for this form (<br />
edit sorry, forgot to mention, its not my html...<br />
<br />
thats just the html of the page i am viewing and i thought i'd add it so it could help.<br />
any more suggestions?<br />
 

AnalProgrammer

New Member
Try<input type="image" class= "submitImg" src="/templates/ default/ image/ buttons/ sendbttn.gif" onClick="WebBrowser1.Document. Forms(1).submit()">
 
Top