I have a JavaScript on my sites which takes readers back to the page from which they came, thus: <a href="#" onClick="history.go(-1)">back</a> Now, many of my readers surf with JavaScript dis-enabled! Please, does anyone know of a PHP script which goes pack to the previous page? Iain
Cyrogenius replied to someone on the 5th September and gave the following code which works well, thank you. Iain <?php $this = basename($_SERVER['PHP_SELF'], '.php'); $prev = intval($this) - 1; $next = intval($this) + 1; $prevlink = $prev . '.php'; $nextlink = $next . '.php'; echo "<a href=\"$prevlink\"><< Previous</a> | <a href=\"$nextlink\">Next >></a>"; ?>