Re: Avoiding user refresh of pages with forms
| From: | Brad Bonkoski | Date: | Wed, 03 May 2006 14:26:13 +0000 |
| Subject: | Re: Avoiding user refresh of pages with forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235373@lists.php.net to get a copy of this message | ||
Is there a way to key off of the data inserted? Like some unique value or set of values that you can do a quick lookup before you insert/update/delete again...
Or you could venture into an AJAX style of submission keyed off of a button click then a refresh to a 'report' page, in which case no POST variables are actually passed to the report page, so refreshing it will just present the same data...
-Brad
Jeff wrote:
Is there a way to prevent a re-posting of the form data when a user pushes the "refresh" button on the browser? I have a page that has a form to enter credit's or debit's to a user account. The top of the page displays the users account history and at the bottom is a form to add an adjustment. I just had a situation where a user came in complaining that the database is out of control every time I "REFRESH" the page the credit I put in gets added again and again!! He also claimed he was getting no warning message about that which was of course false, he just didn't read it. In any event, I need to make this more user proof. Thanks, Jeff