Forum Moderators: coopster
$link="http://www.example.com/"; //this is if the variable is not found
if ($g == "link1") {$link = "http://www.example.com/";}
if ($g == "link2") {$link = "http://www.example.com/";}
if ($g == "link3") {$link = "http://www.example.com/";}
header("Location: $link");
$link="http://www.example.com/"; //this is if the variable is not found
if ($g == "link1") {$link = "http://www.example.com/";}
if ($g == "link2") {$link = "http://www.example.com/";}
if ($g == "link3") {$link = "http://www.example.com/";}