Results 1 to 3 of 3

Thread: How do you send data to a Input Box on a website?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    Hello. I have a webbrowser on my form, and I want to know how its possible to send data to input boxes on the webbrowser - kind of like a "autofiller" - something like what Gator does or what MSIE does when you have a stored password, it puts it in for you. What I want to do is read the HTML, and locate statements such as <input type="text" maxchars=21 name="email">, and then automatically (or by using a command button) send data that is already defined in a file, or in the Text1.text Text2.text, etc in the form itself. There is a good example of what Im trying to accomplish at http://www.roboform.com, except I cant exactly use roboform on my webbrowser in my form . So, does anyone know how to do this?? Ive heard I have to locate the webbrowser using API, and then use SetText (also API), but have no clue on how to do this . If anyone knows, dont hesitate to post below.

    thanks

  2. #2
    New Member
    Join Date
    Dec 2000
    Location
    England
    Posts
    2

    Lightbulb

    I f you to create the form in your web page using scripts i.e. using ASP. Then by rewriting the form eveytime you want to display a new field value.

    Example:

    Response.write "<Form Action=...... Method=post>"
    Response.write "<Input Type= text Name=text1 value=newvalue>"
    response.write "</Form>"

    I hope this help, lookup MSDN for more info.
    A. Alkadi.
    England

  3. #3
    New Member
    Join Date
    Dec 2000
    Posts
    1
    i think u can accomplish this.. like this :
    create a WebBrowser control on ur app. and make a timer and a Button..
    in the buton put this :
    WebBrowser1.Navigate "http://www.roboform.com"
    Timer1.Interval= 1000


    then in the timer1 put in this :
    If WebBrowser1.Busy = False Then 'Wait until browser has loaded the page
    Timer1.Interval = 0 'Disable the Timer
    WebBrowser1.Document.Forms(0).email.Value = "[email protected]"
    End if

    u can add more actions.. affcors and randomize some stuff accordingly hope this help's

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width