PDA

View Full Version : Submit without press the button at the Form



stdjmax
09-14-2005, 02:06 AM
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

Twey
09-14-2005, 11:03 AM
<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.
<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>