in reply to Referal Page

This is a CGI script, yes?

Check the HTTP_REFERER environment variable. Yes, it's mis-spelled, but we make do. :)

If you're using mod_perl, use

$r->header_in('Referer')
where $r is an Apache::Request object.

Keep in mind that the refer(r)er variable isn't always set extremely reliably by browsers.

Replies are listed 'Best First'.
RE: Re: Referal Page
by takshaka (Friar) on May 06, 2000 at 17:09 UTC
    The bottom line is, use HTTP_REFERER for "gee, that's nice to know" sorts of information but not for "everything breaks if this is wrong."