I know I should know the answer to this, but I'm drawing a blank...
I have a conditional statement that checks for the value of a variable, and if it isn't 'Y', then it does a redirect using the header statement.
apparently something that I did a couple days ago had a negative effect on the redirection, but I don't know what it would have been... I did a lot of minor updates to several scripts that could have an effect, but not sure what would stop the header redirection from working...
<?php
include "all_inc/config_site.php";
include "all_inc/pghead.php";
include "all_inc/pgtop.php";
include "all_inc/logcheck.php"; // include on all member pages
if ($accept != 'Y'){ // variable set in logcheck
header('Location:../memupdate.php');// if haven't acceptes TOS go there
exit;
}
A member just brought it to my attention that something was different, and I can see that it isn't forcing the redirect to the memupdate.php as it should be... But it is hitting the exit; which basically leaves me with the left menu and a blank page other than that.
So, I guess the question is ...
What would prevent the redirection from working?
I know there are certain circumstances where it won't work, but don't remember what exactly it is...
Thanks in advance.
Douglas