Results 1 to 3 of 3

Thread: Automatic Form Filler...

  1. #1
    Guest

    Arrow

    I have a small application that has a form with web browser control in it. I have that control load my webpage when the form is loaded.

    The webpage is a small feedback form. How do I make my application fill in some fields on the form?

    I want it to fill in 2 text fields on the webpage upon loading the page. They are "first_name" and "last_name"

    -Simon

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Code:
    'navigate to form
    WebBrowser1.Navigate "http://www.mysite.com"
    'wait till page loads
    Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
        DoEvents
    Loop
    'Fill in form
    WebBrowser1.Document.Forms(0).first_name.Value = "D!m"
    WebBrowser1.Document.Forms(0).last_name.Value = "Have no clue"
    'Submit
    WebBrowser1.Document.Forms(0).enter.Click
    'enter = name of submit button

    Gl,
    D!m
    Dim

  3. #3
    Guest

    Wink

    THANK YOU! THANK YOU! THANK YOU!

    -Simon

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