+ Reply to Thread
Results 1 to 2 of 2

Thread: HTML Auto submit form

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    24

    HTML Auto submit form

    I have a form that takes a username and password , username and password are already
    saved in the web browser , so i need the webpage to load and submit the username and password
    automatically.

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    34
    You can use something like that
    Code:
    <html>
    <body onload="document.getElementById('submit').click()">
        <form name="subfrm" action="../success.html">
            <input type="hidden" name="dst" value="/success.html" />
            <label for="username">Username: </label>
            <input class="field" type="text" name="username" value="" size="27" />
            <label for="password"><b>Password:</b></label>
            <input class="field" type="password" name="password" size="27" />
            <input type="submit" name="submit" value="Login" id="submit" />
            <input type="hidden" name="redirect_to" value="../success.html"/>
        </form>
    </body>
    </html>

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts