RE: [PHP-DB] Preventing repost
| From: | Boget, Chris | Date: | Wed, 03 Jan 2001 19:02:53 +0000 |
| Subject: | RE: [PHP-DB] Preventing repost | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-5576@lists.php.net to get a copy of this message | ||
> I need to find a way to prevent a user from hitting 'back' on
> their browser and reposting the form data.
On all forms I need to have this functionality, I include the
following javascript at the beginning (or end):
<script language="php">
history.forward();
</script>
The first time a user accesses a page, there is no forward history
to go to so nothing happens. But when the user hits the "Back"
button, there is so it jumps them right back to where they were
(the form result page).
Chris