Showing posts with label Redirect back to previous page in PHP. Show all posts
Showing posts with label Redirect back to previous page in PHP. Show all posts

Wednesday, 27 May 2015

Previous page link in php


Previous page link in php

$ref = getenv("HTTP_REFERER");
session_start();
if($ref != ''){
$_SESSION['ref'] = $ref;
}
<a href="echo $_SESSION['ref'];">BACK</a>0