Browsers already have “back” buttons, so you’d better have a darn good reason for needing to put one on your page!
<input type="button" value="Go Back From Whence You Came!" onclick="history.back(-1)" />
<?php $url = htmlspecialchars($_SERVER['HTTP_REFERER']); echo "<a href='$url'>back</a>"; ?>
- You must login to post comments
Please login first to submit.