Re: QuickForm - Preventing multiple user submissions?
| From: | Wolfram Kriesing | Date: | Tue, 08 Jul 2003 06:07:01 +0000 |
| Subject: | Re: QuickForm - Preventing multiple user submissions? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6524@lists.php.net to get a copy of this message | ||
Graham Clarke wrote:
Hi - anyone have a simple solution to make sure users can only submit a form once? Something to disable the submit after it is clicked.only disabling the submit button wont do i guess. since you can still reload the page (CTRL+R in mozilla) and submit the same data again. What would make sense might be adding an additional hidden field to the form, which carries a unique identifier (kind of a session-ID, with the lifetime until the form was processed). and the form class (QF?) knows that when this identifier's 'process()' method had been called once it wont be called again. Therefore this unique identifier needs to be created upon the first visit of the form page, every time. Is this a feature which should/will go in QuickForm? -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth