RE: [PHP] How can obtain referer's name?
| From: | Richard Archer | Date: | Mon, 13 May 2002 01:15:31 +0000 |
| Subject: | RE: [PHP] How can obtain referer's name? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97280@lists.php.net to get a copy of this message | ||
At 10:49 AM +1000 13/5/02, Martin Towell wrote:
>if you have the globals setting in your ini file set to "on" then you can
>use: $HTTP_REFERER
Watch out though... the HTTP_REFERER data is provided by the user
and cannot be trusted. It can't even be guaranteed to exist.
If all the pages are on the same site, you could embed the form
filename in a hidden field on the form so it is passed to the script.
Or since that's also open to abuse by malicious users, you could
track where the user is in the site using session variables.
...R.