Very inexperienced with EE 2.4, but im experienced with PHP & HTML. I am attempting to use the following code to get variables from URL & then run an IF/IF ELSE statement:
<?php $firstname=$_GET[“firstname”]; $zipcode=$_GET[“zipcode”]; $option=$_GET[“option”];
if ($option==”Instant Medigap Prices”) { header(‘Location: 1’); }
elseif ($option==”2”) { header(‘Location: location2test’); }
elseif ($option==”3”){ header(‘Location: location3test’); }
elseif ($option==”4”){ header(“Location: location4test”); }
?>
Obviously the above wont work in EE with php enabled. How can i change it to allow it to work within EE 2.4? I’ve also tried using Mo Variables for aid but still unsure on implementation. i.e. how do i set a var
{get:option}Help & Clarification much appreciated !!