aooga Posted January 16, 2009 Share Posted January 16, 2009 Is there a function / constant to find out where the user is coming from, so I could make a link to go back which changes depending on where the user is coming from? Quote Link to comment https://forums.phpfreaks.com/topic/141037-really-simple-question/ Share on other sites More sharing options...
RussellReal Posted January 16, 2009 Share Posted January 16, 2009 $_SERVER['HTTP_REFERER'] Quote Link to comment https://forums.phpfreaks.com/topic/141037-really-simple-question/#findComment-738169 Share on other sites More sharing options...
iarp Posted January 16, 2009 Share Posted January 16, 2009 You could try $_SERVER['HTTP_REFERER'] http://ca2.php.net/manual/en/reserved.variables.server.php 'HTTP_REFERER' - The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. Quote Link to comment https://forums.phpfreaks.com/topic/141037-really-simple-question/#findComment-738170 Share on other sites More sharing options...
aooga Posted January 16, 2009 Author Share Posted January 16, 2009 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/141037-really-simple-question/#findComment-738249 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.