[html-formfu] Filter for splitting input into a list of values

Carl Franks fireartist at gmail.com
Wed Mar 12 10:06:36 GMT 2008


On 18/02/2008, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> Hi,
>
>  I need a filter to split a field by commas to create a list of values.
>   So that $form->param_array( 'my_field') would return the list of new
>  values.  I have not seen yet any example of such filter - is that
>  doable in FormFu?

This is a good idea.
I've added it in svn r972.

The filter has methods regex() and limit(), which default to the empty
string and zero, respectively.
See `perldoc -f split` for details.

Carl



More information about the HTML-FormFu mailing list