Re: HTTP_REFERER ... ?
| From: | David Robley | Date: | Thu, 06 May 2004 01:46:19 +0000 |
| Subject: | Re: HTTP_REFERER ... ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185493@lists.php.net to get a copy of this message | ||
Tristan.Pretty@risk.sungard.com (Tristan Pretty) wrote in
news:OF19FCC4A7.F49C9B83-ON80256E8B.00544E7D-
80256E8B.00554446@risk.sungard.com:
> if ($_SERVER['HTTP_REFERER'] ==
> 'http://www.mysite.com/') {
> // Stuff
> }
>
> Now why does this not work?
> I wanna asign varibales based on certain referers...
> but this is not working?
>
> Any ideas why?
HTTP_REFERER is empty because the page was not called from a link? Or
HTTP_REFERER is empty because the browser doesn't supply the value?
Echo the variable and see what you get.