Re: QuickForm, finding out the form initialisation

From: Date: Wed, 16 Jul 2003 12:29:22 +0000
Subject: Re: QuickForm, finding out the form initialisation
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18298@lists.php.net to get a copy of this message
Bertrand Mansion wrote:
<wolfram@visionp.de> wrote :
i have written a customized element that i needed. is there a way inside the element class, to find out if the form was just created, i mean before any submit of this form (i thought of some event?) or if any value was submitted to the form the element is in? help would be very much appreciated, thanks
This is not implemented and is IMO a must-have but it will probably require the use of sessions or of a hidden form id (something like a checksum ?). At the moment, I think we just test on $form->submitValues() and _findValue() to see if the element has been submitted. This brings problems when the form is number 2+ in a wizard-like application and elements have the same name or are checkboxes. The best way would probably be to add a form manager to QuickForm.
thanks for the info -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#18298) next »