Forums

This topic is locked

Submit form automatically

Posted 29 Oct 2001 00:59:36
1
has voted
29 Oct 2001 00:59:36 Edgar Soberanes posted:
How so I make to pass a data trough a form (inside a hidden field) but without using the Submit button? there is a way to send the form automatically? I will thank you so much if you can help me


Replies

Replied 29 Oct 2001 19:32:39
29 Oct 2001 19:32:39 Joel Martinez replied:
hmm... well, you'd have to tell us under what circumstances you would want the form submitted. but the answer here is javascript... you can always submit the form using this syntax:<pre id=code><font face=courier size=2 id=code>document.<b>FormName.Submit()</b>;</font id=code></pre id=code>So if you need the form submitted as soon as the document loads for example, put this in the body tag:<pre id=code><font face=courier size=2 id=code>&lt;body onLoad="document.<b>FormName.Submit()</b>;"&gt;</font id=code></pre id=code>

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/

Reply to this topic