Daily Archives: 03/06/2012
PHP Code to Get Previously Visited Page URL
In some situation, previously visited page URL will be needed. In a website, which having login form will need previous page URL. When user is requesting a webpage that page will be shown only when user is logged on, if user is not yet logged in then page will be redirected to login page, after successful login, page will be redirected to previously visited page (page, where he has redirected)
First open the index.php page, then click the link and navigate to page.php page there previous page's URL will be shown. If we open page.php webpage without navigating from index.php page won't gi




