|
-
Oct 7th, 2001, 08:16 PM
#1
Thread Starter
Frenzied Member
Help!! how do i submit this form?
<form method="post" action="Login.asp" name="postForm" LANGUAGE="javascript" onsubmit="return Submit_onclick()">
<input id="UserName" maxlength="50" name="LUserName" size="20" type="text>
<input id="PassWord" maxlength="50" name="LPassWord" size="20" type="password
<input name="PostIt" type="hidden" value="1">
<input type="submit" value="Login" Name="Submit">
</form>
Ive tried everything from webbrowser1.document.forms(0).submit to anything else i can think of, but i just cant seem to submit the form!
does anyone know how i can do this?
-
Oct 7th, 2001, 08:19 PM
#2
Member
1. Why does the FORM tag have the "LANGUAGE="javascript"" key in it?
2. Try adding to the FORM tag "NAME="LoginForm"" and doing WebBrowser1.Document.LoginForm.submit().
-
Oct 7th, 2001, 08:21 PM
#3
PowerPoster
Have you tried shelling?
VB Code:
ShellExecute "[i]path to website[/i]/Login.asp?UserName=" & webbrowser1.document.forms(0).UserName.Value & chr(38) & "PassWord=" & webbrowser1.document.forms(0).PassWord.Value & chr(38) & "PostIt=" & webbrowser1.document.forms(0).PostIt.Value
-
Oct 7th, 2001, 08:22 PM
#4
PowerPoster
Yeah....and Filburt's idea is the back-up plan.
-
Oct 7th, 2001, 08:23 PM
#5
-
Oct 7th, 2001, 09:17 PM
#6
Thread Starter
Frenzied Member
eSecure, that wont work
Filburt, its not my page so i cant edit it
Bloodeye gave me the following code:
Code:
For Each submitButton In doc.All
If submitButton.tagName = "INPUT" Then
If submitButton.Name = "SEND" Then
submitButton.Click
'Debug.Print submitButton.Name
Exit For
End If
End If
Next
but i cant seem to edit it to work with the html code i posted before..
if anyone knows, please post below
-
Oct 7th, 2001, 10:38 PM
#7
Thread Starter
Frenzied Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|