> >> I am trying to set up a script that will do different things based on
> >> the
> >> reffering page, without having to include the information in the URL.
> >> Does
> >> PHP have a built in variable or function that would tell the rest of the
> >> script what page the user came from? Any help
On Friday 15 October 2004 05:03, Jonathan Villa wrote:
> > there is $_SERVER['HTTP_REFERER']
> >
> > but it is unreliable
>
> Can I ask why?
archives.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Ap
On Thu, 14 Oct 2004 16:47:08 -0400, John Nichel <[EMAIL PROTECTED]> wrote:
> Will return nothing.
>
> $_SERVER['HTTP_REFERER']
Just an FYI.. Some versions of IE do not report this info. And some
of the newer home firewall software applications scrub it out under
the guise of privacy, Norton Per
Thanks all. That did it perfectly.
-Original Message-
From: Matt M. [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 2:21 PM
To: Ben
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Referring Page
> I am trying to set up a script that will do different things based on the
> ref
*typo
> Jonathan Villa wrote:
>> $referrer = $_SERVER['REFFERER'];
>
> Will return nothing.
>
> $_SERVER['HTTP_REFERER']
>
>
> --
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://w
Can't be put any more plainly than that, thanks...
> Ben wrote:
>> I am trying to set up a script that will do different things based on
>> the
>> reffering page, without having to include the information in the URL.
>> Does
>> PHP have a built in variable or function that would tell the rest o
>> I am trying to set up a script that will do different things based on
>> the
>> reffering page, without having to include the information in the URL.
>> Does
>> PHP have a built in variable or function that would tell the rest of the
>> script what page the user came from? Any help is much appr
Jonathan Villa wrote:
$referrer = $_SERVER['REFFERER'];
Will return nothing.
$_SERVER['HTTP_REFERER']
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben wrote:
I am trying to set up a script that will do different things based on the
reffering page, without having to include the information in the URL. Does
PHP have a built in variable or function that would tell the rest of the
script what page the user came from? Any help is much appreci
> I am trying to set up a script that will do different things based on the
> reffering page, without having to include the information in the URL. Does
> PHP have a built in variable or function that would tell the rest of the
> script what page the user came from? Any help is much appreciated.
Yes,
write a script with:
and you will find all the wonderous variables at your disposal...
-B
- Original Message -
From: Ben <[EMAIL PROTECTED]>
Date: Thursday, October 14, 2004 3:37 pm
Subject: [PHP] Referring Page
> I am trying to set up a script that will do different thi
$referrer = $_SERVER['REFFERER'];
something like that...
then you can do something like
if ($referrer == 'whatever')
$sdaf = "whatever";
I usually do something like
if (strpos($referrer,'pagename.php'))
//execute code
> I am trying to set up a script that will do different things based
[snip]
> I am trying to set up a script that will do different things based on
> the reffering page, without having to include the information in the
> URL. Does PHP have a built in variable or function that would tell
> the rest of the script what page the user came from? Any help is
> much appr
I am trying to set up a script that will do different things based on the
reffering page, without having to include the information in the URL. Does
PHP have a built in variable or function that would tell the rest of the
script what page the user came from? Any help is much appreciated.
Ben
14 matches
Mail list logo