Re: DB_DO_Formbuilder: Validating forms
| From: | Markus Wolff | Date: | Sat, 03 Jan 2004 05:13:01 +0000 |
| Subject: | Re: DB_DO_Formbuilder: Validating forms | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9925@lists.php.net to get a copy of this message | ||
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