I'm looking for a way to redirect a user to the page they previously came from when they select a link. So far I haven't turned up much in what I'm looking for, only redirecting based upon if they came from a specific domain. Can anyone help me out?
something like this: <?php if($_SERVER['HTTP_REFERER']) echo "<a href='{$_SERVER['HTTP_REFERER']}'>Go back</a>"; ?> Code (markup):