Re: How know from wich page you came from
| From: | Hugh Danaher | Date: | Wed, 11 Dec 2002 05:44:12 +0000 |
| Subject: | Re: How know from wich page you came from | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127758@lists.php.net to get a copy of this message | ||
If you have control of the pages the visitor just left, then you should be
able to modify the links there and pass forward a variable similar to the
following.
<a href=newpage.htm?var=1>
Then on your receiving page you can check the value of $var and do something
with this info.
Hope this helps,
Hugh
----- Original Message -----
From: "Rodrigo" <php@rrb3.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 10, 2002 6:20 AM
Subject: [PHP] How know from wich page you came from
> Hi guys I need a way to know how to know from wich page the visitor
> came, something like:
>
> I wanna put in a php file a switch to do a certain action if the visitor
> came from a certain page, and something else if he came from a diferent
> one, this way I could write, update, insert, delete or anything I need
> from a single file.
>
> Thanks for any kind of input,
> Rodrigo
>
>