Re: Passing form to self
| From: | Ernest E Vogelsinger | Date: | Mon, 28 Apr 2003 08:59:43 +0000 |
| Subject: | Re: Passing form to self | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145486@lists.php.net to get a copy of this message | ||
At 10:46 28.04.2003, -Swordfish- said:
--------------------[snip]--------------------
>Can anyone tell me how i can pass a form to itslef. For example, where you
>have <form action="...." i want the action to go to the same page,
>regardless of what directory it is in...
--------------------[snip]--------------------
If you omit the action="" tag completely, the form will go to the very same
URL which originally generated it.
So, in case you have myscript.php generating this very simple form:
<form>
<input type="submit">
</form>
submitting this form will again end up in myscript.php.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/