PDA

Click to See Complete Forum and Search --> : Automatic Form Filler...


Oct 8th, 2000, 08:08 PM
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

Dim
Oct 9th, 2000, 03:04 AM
'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

Oct 9th, 2000, 08:59 AM
THANK YOU! THANK YOU! THANK YOU!

-Simon