samir_gambler Posted November 25, 2013 Share Posted November 25, 2013 Hello,Is it possible to know from which page I was redirected to current page. Say in a.php there is a link to b.php and when b.php is loaded can I decide whether I was called from a.php or not.Thanks & Regards,Samir Quote Link to comment https://forums.phpfreaks.com/topic/284243-how-to-find-from-which-page-i-was-redirected-to-current-page/ Share on other sites More sharing options...
requinix Posted November 25, 2013 Share Posted November 25, 2013 $_SERVER["HTTP_REFERER"], but know that it is not reliable: might not be there, might not have the correct value, might not even be a URL at all... Quote Link to comment https://forums.phpfreaks.com/topic/284243-how-to-find-from-which-page-i-was-redirected-to-current-page/#findComment-1459927 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.