When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form?
Of course. :)
One technique is to use a "middle-man" page that processes your POST data and inserts it into the database or file or whatever. Then you use header() to send the user to another page.
So the page that was "posted" to is never really seen by the user and the back button just goes back directly to the form. You can also go back to the redirected page without the browser asking to "re-post" the data...
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php