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' );}
?>