Re: HTML_QuickForm2: Get notified when the form has been validated
| From: | Alexey Borzov | Date: | Mon, 24 May 2010 12:56:54 +0000 |
| Subject: | Re: HTML_QuickForm2: Get notified when the form has been validated | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53496@lists.php.net to get a copy of this message | ||
Hi Christian,
On 20.05.2010 21:20, Christian Weiske wrote:
My QF2 Captcha element stores the current captcha question and answer in session, and also if the captcha has been solved or not. This behavior means that the developer has to remember to clean up the QF2 captcha session after the form has been validated - otherwise, the form can be re-transmitted again and again, without the need for solving the captcha again. It would be ideal if my captcha element would be notified when the whole form is valid. Then it could clear the session itself. Currently this is not possible. Thoughts?What happens if you add CAPTCHA on the first page of a multipage form? I don't think automagically deleting anything is a good idea.