I want to read data from a web site programatically ; let's say that my site have 3 pages, p1.html, p2.html and p3.html; in p1 there is a radio button, if i choose option1, and use submit button, it display p2.html, if i choose option2, it display p2.html; the source is something like that:
...
<input type="image" src="http://www.test.com/find.jpg" value="find">
From VB6, I can programatically choose my option, but i cant submit the form, to display p2 or p3.html
Code:
<form action="/do_search" method="post" onSubmit="return find_option();">
<input type="hidden" name="search" value="1">
<input type="image" src="http://www.test.com/find.jpg" value="find">
From VB6, I can programatically choose my option, but i cant submit the form, to display p2 or p3.html
Code:
...
HTMLDoc.getElementById("option").Value = "1"
HTMLDoc.getElementById("option1").Click
[I][U]HTMLDoc.getElementById("search").Click [/U][/I]'form isn't submitted
Comment