Hi,
Can anyone help me with a Referer problem.
I have files that redirect if you have not registered a variable:
if ($SESSION["build_month"]==""){
header("Location: file_1.php");
exit;
}
and in file_1.php i wanted to register the variable, and redirect back.
However using:
$rhostget=getenv("HTTP_REFERER");
echo "This is the url - ".$rhostget;
i am finding that the $rhostget is empty.
If i use a link to go to file_1.php, then $rhostget has the correct value? Does anyone know why the header() would not populate the HTTP_REFERER, but it will be populated if a hyperlink is used??
Thanks
Chris