<?
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:[EMAIL PROTECTED]]
Sent: 02 August 2001 04:45
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]