How to programatically submit a html button from vb?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alro
    New Member
    • Sep 2010
    • 3

    How to programatically submit a html button from vb?

    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:
    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
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    In VB6 is "Click" not a property!
    Is it possible to attach Your document and programma in Bytes ?

    Comment

    Working...