Re: QuickForm using freeze() as a preview
| From: | Charles Kline | Date: | Thu, 26 Oct 2006 22:36:52 +0000 |
| Subject: | Re: QuickForm using freeze() as a preview | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25655@lists.php.net to get a copy of this message | ||
Alexey,
Thank you. This has been a big help.
My one other related question is this. My form has a group of buttons "submit" and "reset". I would like to hide the reset button after the form has been submitted. Is there a way to removeElement() on the button in the process function? Or is this better done with a conditional in the section of code where I declare the group of buttons?
Thanks,
Charles
On Oct 25, 2006, at 4:45 PM, Alexey Borzov wrote:
Hi, Charles Kline wrote:-- RightCode, Inc. 900 Briggs Road #130 Mount Laurel, NJ 08054 P: 856.608.7908 F: 856.439.0154 E: ckline@rightcode.net$hidden =& $form->addElement('hidden', 'is_this_actually_a_second_submit'); $hidden->setValue('this is exactly the case!'); --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpCharles 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?If 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.