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? 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'] 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. 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! Link to comment https://forums.phpfreaks.com/topic/141037-really-simple-question/#findComment-738249 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.