hello everybody,
i have this script, and i cannot get this to pass to the correct page. It only goes to ELSE section of the statement:
Any ideas why it won't forward correctly?
target page:
<?
if (isset($GET['page']) && $GET['page'] != '') {
Switch ($_GET['page']) {
Case "corporate":
$url = "corporatepage";
break;
Case "usatf":
$url = "usatfpage";
Break;
Case "school":
$url = "schoopage";
Break;
Case "volunteer":
$url = "volunteerpage";
Break;
Case "youth":
$url = "youthpage";
Break;
}
Header('Location: ' . $url);
}
else {
$url = "........page that is always fowarded to";
Header('Location: ' . $url);
}
?>
this always goes to the ELSE page.
thanks,
-Michael