Skip to content

Instantly share code, notes, and snippets.

@apphp-snippets
Created May 22, 2012 16:54
Show Gist options
  • Select an option

  • Save apphp-snippets/2770224 to your computer and use it in GitHub Desktop.

Select an option

Save apphp-snippets/2770224 to your computer and use it in GitHub Desktop.
You may create a back button like your browser has. The following script allows the visitor to press a button and returns the him to the previous page.
<form>
/* Source: http://www.apphp.com/index.php?snippet=php-get-remote-ip-address */
<input type="button" value="Previous Page" onclick="history.go(-1)">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment