Forum Moderators: coopster
i used
$p=$_SERVER["REQUEST_URI"];
if($notfound){
header("Location:404.php?p=$p");
}
on the error handler page 404.php i used this code
echo ($_GET['p'])."not found";
problem
test2.php?a=term1&b=term2
prints
/test2.php?a=term1
on the error page
how can i get the entire value for the user request and log it
i tried phpself
it returns only the page (the php file)
my aim is to get the entire url the user typed in the brower
its of the form
test2.php?a=term1&b=term2
i tried $_SERVER["REQUEST_URI"]
result prints /test2.php?a=term1
$_SERVER['PHP_SELF'] prints test2.php
$_SERVER['QUERY_STRING'] prints /test2.php?a=term1&b=term2 on test2.php but if i pass it to another page the part after the "&" gets cut
How could i get entire path and qry string
please help