Have array of customers each with individual details. Here is a very SIMPLE example.
<input type="text" name="customer_names[]" />
In codeigniter, each customer_name is required
$this->form_validation->set_rules('customer_names[]','Customer Names','required');
If any of the customer names are blank, validation_errors(); shows one message for the entire array.
How can I obtain individual error messages for that customer?
NOTE: echo form_error('customer_names[0]'); is what I am trying to achieve where customer_name 0 was left blank.