[PHP] Referring Page

2004-10-14 Thread Ben
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

RE: [PHP] Referring Page

2004-10-14 Thread Pablo Gosse
[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

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
$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

Re: [PHP] Referring Page

2004-10-14 Thread bbonkosk
Yes, write a script with: ?php phpinfo(); ? 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

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
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.

Re: [PHP] Referring Page

2004-10-14 Thread John Nichel
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

Re: [PHP] Referring Page

2004-10-14 Thread John Nichel
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

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
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.

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
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 of the

Re: [PHP] Referring Page

2004-10-14 Thread Jonathan Villa
*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:

RE: [PHP] Referring Page

2004-10-14 Thread Ben Miller
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 reffering

Re: [PHP] Referring Page

2004-10-14 Thread Greg Donald
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

Re: [PHP] Referring Page

2004-10-14 Thread Jason Wong
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 Applications

Re: [PHP] Referring Page

2004-10-14 Thread Matt M.
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