Re: Formbuilder and multiple forms

From: Date: Fri, 18 Mar 2005 01:33:39 +0000
Subject: Re: Formbuilder and multiple forms
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36745@lists.php.net to get a copy of this message
Or even by creating the form yourself and using useForm().
That's would be too much overhead every time you use multiple forms.
Well, FormBuilder normally deals with one form, so we didn't really think about it.
Well, why not make it "multi-form" compatible?
It could be possible to turn this on by default instead and make the user use getForm if they want it off....I'm not sure if there are any side-effects of using this, but I don' thitnk there are any.
I've tried this (the other way round, with setting trackSubmit to true), but the form seems to be already rendered/configured without the trackSubmit, so changing this property afterwards won't do the trick. This is really an one-liner: FormBuilder/QuickForm.php (v 1.32 2005/03/05 00:22:51 justinpatrin): 157: $form =& new HTML_QuickForm($formName, $method, $action, $target,"",true); instead of 157: $form =& new HTML_QuickForm($formName, $method, $action, $target); Sorry for being lazy and not creating a dif. Esad

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