Re: QuickForm using freeze() as a preview
| From: | arnaud sellenet | Date: | Fri, 27 Oct 2006 09:01:35 +0000 |
| Subject: | Re: QuickForm using freeze() as a preview | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25657@lists.php.net to get a copy of this message | ||
One way to achieve this is to add a hidden element to the form after being validated :
if($form->validate()) {
if($form->elementExists('doprocess') {
// Process the form
......
} else {
$form->addElement('hidden','doprocess',1);
$form->freeze();
}
}
Le 25 oct. 06 à 22:39, Charles Kline a écrit :
On Oct 25, 2006, at 4:36 PM, Alexey Borzov wrote:Hi, Charles Kline wrote:This much I understand. Let me clarify... once the form has been submitted and frozen() if the submit button is then clicked again, how do I check for this so I can process the data and not freeze() on the second submit. Is this more clear? Thanks again, Charles --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpIf I am using freeze() in my form to give the user a preview of the submitted data before processing, how do I then POST the frozen form for processing? What is the method to use when doing this?You usually post the form by clicking a submit button.