homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

passing a referrer with a redirect
seems to just pass a blank referrer

 11:24 pm on Jan 11, 2006 (gmt 0)

Hi Guys,
I need to pass a referrer url with a redirect.
I've tried php and JavaScript but each time I just pass a blank referrer.

Is there anyway to do this?

I need the referrer to show up in a normal php or javascript referrer detection scrip, the kind you find with most free hosted web stats programs.



 1:05 am on Jan 14, 2006 (gmt 0)

I'll assume this is not possible then.


 1:19 am on Jan 14, 2006 (gmt 0)

Hi GerBot.

The referer is not always going to be there. The user can supply it or not, depending on how they have their setup configured. However, you can try to capture it by grabbing the HTTP_REFERER variable if it has been populated on your server.

In your case though, it sounds like you are wanting to pass it via your own redirect options and use it at that point. So, the page that is doing the redirecting simply needs to grab it's own information and pass it along.

How are you setting up your redirect right now?

Another recent discussion for some ideas:

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved