Multiple forms
| From: | Doug Coning | Date: | Mon, 30 Dec 2002 21:26:03 +0000 |
| Subject: | Multiple forms | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129704@lists.php.net to get a copy of this message | ||
Hi all,
I have an update page that has a form in it.
However, I want to add another form in the same page. My current form acts
upon itself (i.e. Action = the same page). If I set up another form to do
the same, how would my PHP determine with action submit button was acted
upon?
Currently, for the single form here is how it knows a form was submitted:
if ((isset($HTTP_POST_VARS["MM_update"])) &&
($HTTP_POST_VARS["MM_update"]
== "form1")) {
How would I test which form submitted the action?
Thanks and if I didn't make myself clear, I apologize.
Doug