Showing posts with label php - Go Back to Previous Page Link. Show all posts
Showing posts with label php - Go Back to Previous Page Link. 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