Re: Submit buttons

From: Date: Tue, 25 Feb 2003 20:28:15 +0000
Subject: Re: Submit buttons
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-137127@lists.php.net to get a copy of this message
<INPUT type=submit name=submit1 value="Submit This"> <INPUT type=submit name=submit2 value="Submit That"> in the PHP script: extract($HTTP_POST_VARS); if( isset($submit1) ) header("location: thispage.php"); else if( isset($submit2) ) header("location: thatpage.php"); ----- Original Message ----- From: "Rick Emery" <remery@emeryloftus.com> To: <php-general@lists.php.net> Sent: Tuesday, February 25, 2003 2:25 PM Subject: Re: [PHP] Submit buttons 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#137127) next »