Results 1 to 7 of 7

Thread: Help!! how do i submit this form?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195

    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?

  2. #2
    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().

  3. #3
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Have you tried shelling?

    VB Code:
    1. 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

  4. #4
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Yeah....and Filburt's idea is the back-up plan.

  5. #5
    *sarcasm* Oh, thanks.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    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

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2000
    Posts
    1,195
    up

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