Thread: form submit
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
geebee geebee is offline
external usenet poster
 
Posts: 190
Default form submit

hi,

i have some code that opens up a web page and fills in the user and password
fields. then i have some code to submit the form. there is an OK and a
CANCEL button in the internet ASP form. here is my code:

....
With myDoc.getElementsByName("user")(0)
..Value = strUSERNAME
End With

myDoc.forms(0).submit

i noticed that the web page is refreshed and almost looks like it is going
to go to another page, but in the end it is just refresh, with the username
and password cleared out. what am i doing wrong? i simply need to simulate
clicking the OK button.

thanks in advance,
geebee