View Single Post
  #2 (permalink)  
Old Dec 2nd, 2007, 06:17
JustinStudios's Avatar
JustinStudios JustinStudios is offline
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Different "Thank You" pages based on drop down value??

Let's say you have 4 options on a drop down named ABC.
These 4 options are named for example {a,b,c,d}.
You can do this many ways and if you want completely different pages the easiest way is to add this to a header (above the <doctype and HTML tags>

Code: Select all
<?PHP
if($_POST[ABC] == "a"){
header( 'Location: MyPageName.php' );}
if($_POST[ABC] == "b"){
header( 'Location: SecondPageName.php' );}
if($_POST[ABC] == "c"){
header( 'Location: ThirdPageName.php' );}
if($_POST[ABC] == "d"){
header( 'Location: FourthPageName.php' );}
?>
Reply With Quote