RE: [PHP-DB] PHP redirect?

From: Date: Thu, 02 Aug 2001 04:10:44 +0000
Subject: RE: [PHP-DB] PHP redirect?
Groups: php.db 
Request: Send a blank email to php-db+get-10988@lists.php.net to get a copy of this message
<? if $option_button == "1") { header("Location: some_page_or_other.php"); } else { header("Location: some_other_page_you_choose.php"); } ?> that's all you need - make sure the form on the previous page has two radiobuttons, each with the same name of option_button and each has a value - one is 1 and the other is 2. HTH :-) Dave -----Original Message----- From: Webmaster [mailto:webmaster@crosswalkcentral.net] Sent: 02 August 2001 04:45 To: php-db@lists.php.net Subject: [PHP-DB] PHP redirect? I have a form and based off of this form if my user selects option a then I want them to be redirected to another page. If they select option B then I want to continue with my php scrips as it does now. Does any one have any ideas on how I can accomplish this? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#10988) next »