Hello all Is there a simple PHP function that gives you the page the user visited last. Eg how they got to your page ? Thanks a million Al
Just use the HTTP_REFERER system variable. It should give the page that sent the user to the current one.
Mark.
If they got there by following a link, probably $HTTP_REFERER (um. $_SERVER['HTTP_REFERER']?). "Probably", because there's no guarantee it'll be set)
If they got there some other way; no. That would be a security hole.
"Where did YOU go today?"
Thanks a million guys