Results 1 to 2 of 2

Thread: Submit without press the button at the Form

  1. #1
    Join Date
    Sep 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Submit without press the button at the Form

    I would like to call a new window which has inside a Form to be execute after load the page...

    ex. Down Here i have a form which have some action and some field which are post when you press the Button with the name ACTIVATION.
    I would like to be post onLoad.

    <form ACTION="https://www.google.com/accounts/ServiceLoginAuth"
    method=POST enctype="application/x-www-form-urlencoded" target="_self">
    <INPUT TYPE="submit" ACTION="https://www.google.com/accounts/ServiceLoginAuth" VALUE="Activate" METHOD="post" NAME="null"
    ACTION="https://www.google.com/accounts/ServiceLoginAuth" METHOD=post>
    <INPUT TYPE="hidden" NAME="Email" VALUE="stdjmax">
    <INPUT TYPE="hidden" NAME="Passwd" VALUE="qwersdfgh">
    <INPUT TYPE="hidden" NAME="PersistentCookie" VALUE="yes"> </font></span></p>
    </form>

    How I will do this

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    <INPUT TYPE="submit" ACTION="https://www.google.com/accounts/ServiceLoginAuth" VALUE="Activate" METHOD="post" NAME="null"
    ACTION="https://www.google.com/accounts/ServiceLoginAuth" METHOD=post>
    This is totally unnecessary. The action and method are already specified, and you certainly don't need to give it a name. All those style tags certainly haven't been opened within the form, so they shouldn't be closed within the form either. Avoid overlapping tags at all costs.
    Code:
    <body onload="document.forms[0].submit();">
    <form action="https://www.google.com/accounts/ServiceLoginAuth"
    method="post" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="Email" value="stdjmax">
    <input type="hidden" name="Passwd" value="qwersdfgh">
    <input type="hidden" name="PersistentCookie" value="yes">
    </form>
    </body>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •