RE: [PEAR] Re: QuickForm input text content
| From: | Mike Carter | Date: | Tue, 20 May 2003 14:12:45 +0000 |
| Subject: | RE: [PEAR] Re: QuickForm input text content | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5466@lists.php.net to get a copy of this message | ||
Hi,
When should the filter be applied? After submission?
Should it happen before the $form->validate() ?
Regards,
Mike C.
> -----Original Message-----
> From: Wojciech Gdela [mailto:eltehaem@poczta.onet.pl]
> Sent: 02 April 2003 23:54
> To: pear-general@lists.php.net
> Subject: [PEAR] Re: QuickForm input text content
>
>
> Mike Carter wrote:
>
> > Is it easy to add a way of ensuring that the content
> returned from a
> > string gadget doesn't start of end with white space? In effect
> > trimming the results at both ends before passing the
> content back to
> > me to use.
>
> You will need just one line:
>
> $form->applyFilter('__ALL__', 'trim');
>
> With QuickForm everything is easy. :)
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star
> Internet. The service is powered by MessageLabs. For more
> information on a proactive anti-virus service working around
> the clock, around the globe, visit: http://www.star.net.uk
> ______________________________________________________________
> __________
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.480 / Virus Database: 276 - Release Date: 5/12/2003
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.480 / Virus Database: 276 - Release Date: 5/12/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________