<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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php