On any page that shows an error, it redirects to an error page.
if(error = true)
{
header("Location: error.php");
}
Now on the error page, I want to display the page that had an error.
Normally i would use $_SERVER["HTTP_REFERER"] to get the page, but that doesn't work. I want to know how to get the previous page, without modifing the previous page, ie i have 100 pages