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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to