I learned a new technique (from Chris Coyier), and I thought it may be helpful for you guys.
Some of you guys may find this helpful if your creating a preview/demo page and you want to go back to original page. This could help you guys.
<?php
$return = htmlspecialchars($_SERVER['HTTP_REFERER']);
echo "<a href='$return'>return to page</a>";
?>
Original source: http://css-tricks.com/snippets/javascript/go-back-button/