Re: QuickForm Clear posted fields
| From: | Damien Cros | Date: | Tue, 07 Feb 2006 14:54:25 +0000 |
| Subject: | Re: QuickForm Clear posted fields | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22838@lists.php.net to get a copy of this message | ||
On 7 févr. 06, at 11:24, Alexey Borzov wrote:
Attachment: [application/pkcs7-signature] smime.p7s
Hi, Damien Cros wrote:I'm sorry, I don't understand. What you're saying is that something like this: $myElement = $form->addElement(.... $form->addRule(... if($form->validate()) { // insert // clear $_request or whatever $form->clearValues(); } $form->display() wouldn't work? damienIsn't there a way to avoid the redirect? I mean, it's easy to do it without quickform. Why would it be impossible to do it with quickform?You don't want to "avoid" the redirect. If you "avoid" it, the form will be re-submitted on page reload, and you'll ask questions here on how to avoid *that*.
Attachment: [application/pkcs7-signature] smime.p7s