homepage Welcome to WebmasterWorld Guest from 54.166.122.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
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
GerBot

10+ Year Member



 
Msg#: 11333 posted 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.

 

GerBot

10+ Year Member



 
Msg#: 11333 posted 1:05 am on Jan 14, 2006 (gmt 0)

I'll assume this is not possible then.

coopster

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 11333 posted 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:
[webmasterworld.com...]

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