I have a PHP script that is redirecting the user via some code like:
header ('Location: http://someurl/somepage.php');
Then in somepage.php I am trying to access $_SERVER['HTTP_REFERER'] to determine where the page request has come from. I find that $_SERVER['HTTP_REFERER'] is empty when a page is called using the header location method.
Is there an alternative method that I can use to redirect the user so that I can still use $_SERVER['HTTP_REFERER'] in the target page.