Server redirect not working on live server
I have a redirect that works fine on my testing server, but not on my live server.
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Redirect_URL = "attendance.php";
$WA_Redirect_KeepQS = true;
if ($WA_Redirect_URL != "") {
if ($WA_Redirect_KeepQS && $WA_Redirect_URL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "") {
$WA_Redirect_URL .= ((strpos($WA_Redirect_URL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_Redirect_URL);
}
// echo"here it is";
// die;
}
?>
I've verified that the live server is reaching that code using an echo/die statement, but for some reason it's still not redirecting. The problem page is attached.