I have group of text boxes like below
<input type="text" size="10" value="<?php echo set_value('sizes[]'); ?>" name="sizes[]"/>
<input type="text" size="10" value="<?php echo set_value('sizes[]'); ?>" name="sizes[]"/>
<input type="text" size="10" value="<?php echo set_value('sizes[]'); ?>" name="sizes[]"/>
<input type="text" size="10" value="<?php echo set_value('sizes[]'); ?>" name="sizes[]"/>
<input type="text" size="10" value="<?php echo set_value('sizes[]'); ?>" name="sizes[]"/>
then if I set validation rules like below
array(
'field' => 'sizes[]',
'label' => 'SIZES',
'rules' => 'required|xss_clean'
),
then codeigniter check every input box for value. If every text box is filled up then codeigniter returns true. But I want to get if anyone of them filled up then return true
How can I do that??
Thanks