Re: auto-submit
| From: | Nadim Attari | Date: | Mon, 28 Jun 2004 11:02:58 +0000 |
| Subject: | Re: auto-submit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189139@lists.php.net to get a copy of this message | ||
javascript !!!
=========
<form name='aForm' action='stateOne.php'>
<input type=hidden value=aVal name=aHiddenName>
</form>
<script language="JavaScript">
document.aForm.submit();
</script>
==============
"Jim Rainville" <jim@rainville.net> a écrit dans le message de
news:003301c45cb6$519a5a90$ec00a8c0@BIGDUDE...
Hi -
I'm writing a multi-page php script that keeps track of state with a hidden
variable in the html forms. It's all working well except I would like to
know how to auto submit a form and change the state. For example when I'm in
state 2 and the user enters some data and hits a submit button I want the
script to change to state 3 - process some data in that state then go back
to state 1. I want the transition to go back to state 1 without the user
having to hit a submit button - i.e. I want the form to auto-submit. Is
there a way to do this?
Thanks for any help you can give.
Jim