Re: Submit buttons
| From: | Rick Emery | Date: | Tue, 25 Feb 2003 20:25:06 +0000 |
| Subject: | Re: Submit buttons | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137125@lists.php.net to get a copy of this message | ||
Yes, you can. Simply give the buttons differnt names:
<INPUT type=submit name=submit1 value="Submit This">
<INPUT type=submit name=submit2 value="Submit That">
in the PHP script:
extract($HTTP_POST_VARS);
is( isset($submit1) )
{
}
else if( isset($submit2) )
{
}
----- Original Message -----
From: "Greg" <gregchagnon@hotmail.com>
To: <>
Sent: Tuesday, February 25, 2003 2:11 PM
Subject: [PHP] Submit buttons
Is there any way that I can have a form submit to different pages depending
on the submit button that is pressed? Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php