auraphp / Aura.Input

Tools to describe HTML form fields and values.
MIT License
65 stars 11 forks source link

Good to have a solution, probably in Framework? #9

Closed harikt closed 11 years ago

harikt commented 11 years ago

Some times we will be having input of

<input type="text" name="title[]" id="title0" value="some value" />

In this case the filter can be

$filter->addSoftRule('title', $filter::IS, 'alnum');

Which needs to be validated for all the title array. Rather than we writing title0 it is always wise to have the title[] field.

We want to find a way that passing the value to filter can be addressed. Not sure whether it should come in Aura.Filter or Aura.Input

pmjones commented 11 years ago

Seems like the kind of thing we could do at the Filter level. We have "any" and "all". Perhaps we need a "repeated" or "multiple" filter that loops through the value array and applies rules to each element in the value array.

harikt commented 11 years ago

Will you be adding to the todo or making a issue there ?