Re: AW: [PEAR] HTML Quickform Filter

From: Date: Mon, 10 Jul 2006 16:00:59 +0000
Subject: Re: AW: [PEAR] HTML Quickform Filter
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24608@lists.php.net to get a copy of this message
Fantastic thank you. For reference I also just founf this in the docs when I knew what to look for: http://pear.php.net/manual/en/package.html.html-quickform.html-quickform.applyfilter.php Regards Ian Warner Director Triangle Solutions Ltd Kaiser, Patrick wrote:
hi, you could use $form->applyFilter('__ALL__', 'trim'); to apply the filter to all fields.. best regards, patrick
Is there a shortcut for doing this: $form->applyFilter('username', 'trim'); $form->applyFilter('password', 'trim'); $form->applyFilter('first_name', 'trim'); $form->applyFilter('surname', 'trim');
    


« previous php.pear.general (#24608) next »