Before myfile.php loads, I want to check for two things, ..the $logged_in and status info.
However it's not checking my second if statement......so no matter whether or not the $status is equal to 1 or not, the page continuously loads......which isn't what I want obviously.
Will I have to put these check statments in a seperate file and possibly use header() redirection?.......
or can I combine these two check statments together somehow before loading the rest of the page.
//myfile.php
<? if($logged_in == 0) {
print "<script type=\"text/javascript\">window.location = \"home.php\";</script>";
die;
} else {
if($status == 1) {
print "<script type=\"text/javascript\">window.location = \"home.php?page=manage&action=billing\"</script>";
die;
}
}
?>
//my html