Re: HTML Quickform Filter
| From: | Mark Wiesemann | Date: | Mon, 10 Jul 2006 16:05:42 +0000 |
| Subject: | Re: HTML Quickform Filter | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24609@lists.php.net to get a copy of this message | ||
Ian Warner wrote:
> Is there a shortcut for doing this:
>
> Do I need to use the grouping?
>
> $form->applyFilter('username', 'trim');
> $form->applyFilter('password', 'trim');
> $form->applyFilter('first_name', 'trim');
> $form->applyFilter('surname', 'trim');
You could use an array (of the element names) as the first argument.
Regards,
Mark