Re: DB_DO_Formbuilder: Validating forms
| From: | Robert Munteanu | Date: | Sat, 03 Jan 2004 20:37:46 +0000 |
| Subject: | Re: DB_DO_Formbuilder: Validating forms | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9936@lists.php.net to get a copy of this message | ||
Markus,
Good point:). Thanks.
Robert
On Sat, 2004-01-03 at 07:13, Markus Wolff wrote:
> Robert Munteanu wrote:
> > Hi all
> >
> > I played a bit with FormBuilder, and the only thing I was unable to
> > achieve was to create form validation. How can this be done?
>
> Hi Robert,
>
> for starters, you can put a method like this in the generated class file
> you want to get a form from:
>
> function postGenerateForm(&$form)
> {
> // Add anything you like to the QuickForm object $form here.
> // See QuickForm docs for what you can do with it.
> }
>
> ...and you can then add new validation rules to the form.
>
> CU
> Markus
--
Robert Munteanu <rombertworf@xnet.ro>