Welcome Guest, Not a member yet? Register   Sign In
Form validation array
#1

[eluser]Philo01[/eluser]
Hi there!

I've got a form that contains an array:

Code:
<input type="text" id="day" value=""  name="field[13][day]">
<input type="text" id="month" value="" name="field[13][month]">
<input type="text" id="year" value="" name="field[13][year]">

CodeIgniter seems to skip multidimensional arrays when validating.
Inside MY_Form_validation it should validate the age:

Code:
if($row->type == 'birthday' && !min_age( $value['year'], $value['month'], $value['day'], $row->min_amount ))
{
        $CI->form_validation->set_message('match_allowed_input', sprintf($CI->lang->line('min_age'), $row->min_amount));
        return FALSE;
}

How can I prevent CodeIgniter from stripping this out?

Thanks! Smile




Theme © iAndrew 2016 - Forum software by © MyBB