On 1/7/06, Kevin Waterson <[EMAIL PROTECTED]> wrote:
>
> This one time, at band camp, Gerry Danen <[EMAIL PROTECTED]> wrote:
>
> > I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or
> perhaps
> > has a new name?
>
> still there, same name.
>
> print_r($_SERVER);


Ah, yes. It's there when the page is actually referred from somewhere,
otherwise it's not.

Thanks, Kevin.

Now my simple assignment becomes a conditional assignment to avoid clutter
in the error log:

if ( isset($_SERVER['HTTP_REFERER']) )
    $glb_http_ref    =    $_SERVER['HTTP_REFERER'];
else
    $glb_http_ref    =    "";

instead of

$glb_http_ref =  $_SERVER['HTTP_REFERER'];

Learning as I go... :)

Gerry

Reply via email to