Welcome Guest, Not a member yet? Register   Sign In
validate ARRAY of elements
#1

[eluser]Unknown[/eluser]
hi, i am working on an application and i have some inputs like these

Code:
form_input(array('name' => 'independent[0][name]', 'size' => 20, 'class' => 'medium'));
form_input(array('name' => 'independent[0][birthday]', 'size' => 15, 'class' => 'medium datepicker_birthday'));

and after this i have a button that adds another pair of fields like these

Code:
form_input(array('name' => 'independent[1][name]', 'size' => 20, 'class' => 'medium'));
form_input(array('name' => 'independent[1][birthday]', 'size' => 15, 'class' => 'medium datepicker_birthday'));

how can i use the validation class for validate something like this ?

Regards and thank u!!!!




Theme © iAndrew 2016 - Forum software by © MyBB