john_6767 Posted November 9, 2006 Share Posted November 9, 2006 how do i check if php if refer page is a certain is this page, and as such if page is HOME.php then do echo "you came from home.." Link to comment https://forums.phpfreaks.com/topic/26664-php-refer-page-variable/ Share on other sites More sharing options...
JasonLewis Posted November 9, 2006 Share Posted November 9, 2006 the variable for getting the referer is [code=php:0]$refer = $_SERVER['HTTP_REFERER'];[/code]then you would just do an if statement to check to see if it is HOME.php Link to comment https://forums.phpfreaks.com/topic/26664-php-refer-page-variable/#findComment-121978 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.