gandaliter Posted May 12, 2007 Share Posted May 12, 2007 Hi, I am trying to make a system where other web sites can link to my home page, and my home page can redirect them based on the site they came from. However I really don't want to have to use get values in the url. In short I need to know if there is a variable or function which allows me to find the web page that the user has just come from, and if there is, what it is. It would be part of an affiliate program for http://www.x-bytehosting.co.uk. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/51067-solved-find-previous-page/ Share on other sites More sharing options...
chigley Posted May 12, 2007 Share Posted May 12, 2007 $_SERVER['HTTP_REFERER'] is the variable you need to use to find the referring URL Quote Link to comment https://forums.phpfreaks.com/topic/51067-solved-find-previous-page/#findComment-251326 Share on other sites More sharing options...
gandaliter Posted May 12, 2007 Author Share Posted May 12, 2007 Thanks a lot Quote Link to comment https://forums.phpfreaks.com/topic/51067-solved-find-previous-page/#findComment-251330 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.