PHP header("Location")
Hi I would like to know how can I redirect to the last page that I was looking?
I can do PHP Code:
I would like to redirect to the last page that I saw.. Thanks a lot.. |
You could try using "$_SERVER['HTTP_REFERER'];" but not all browsers will send this so you may want to include the name of a page itself in the querystring - ie, in links.php:
<A href="script.php?referer=links.php">Run Script</A> Then you can use the $_GET["referer"] variable to get the last page name. |
All times are GMT -5. The time now is 12:09 PM. |