[symfony-users] Re: how to automatically trim form parameters ?

2007-07-10 Thread Haris Zukanovic'
Maybe you are thinking about a solution in form of an excution filter to be applied automaticaly to all fields scube wrote: > better use trim() > > > On Jul 10, 11:16 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > >> Hadrien Boyé schrieb: >> >> >>> Is there a simple way to trim (on

[symfony-users] Re: how to automatically trim form parameters ?

2007-07-10 Thread scube
better use trim() On Jul 10, 11:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hadrien Boyé schrieb: > > > Is there a simple way to trim (on the server side) every field content typed > > by the user in a form ? > > like this? > > foreach($this->getRequest()->getParameterHolder()->getAl

[symfony-users] Re: how to automatically trim form parameters ?

2007-07-10 Thread [EMAIL PROTECTED]
Hadrien Boyé schrieb: > Is there a simple way to trim (on the server side) every field content typed > by the user in a form ? like this? foreach($this->getRequest()->getParameterHolder()->getAll() as $key => $value) { $newvalue = ltrim($value, "_"); } -- --~--~-~--~~---