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

[eluser]Treeda[/eluser]
Hi all,

i know this is an often discussed problem, and it seems the set_value etc is fixed in the most current version but i still have a problem with error message when i use arrays as field names.

having multiple fields with the same name, defining the rule this way
$this->form_validation->set_rules('motortype[]', 'xxx', 'trim|required|numeric|xss_clean');

works fine so far, even repopulation with set_value("motortype[]");

but showing errors like this
<?php echo form_error('motortype[]'); ?>

doesn't work, the error msg shows up for all fields. Does anyone have a solution for this?

Thank You
Treeda


Messages In This Thread
Form validation with array fields, error message - by El Forum - 03-06-2011, 08:30 PM
Form validation with array fields, error message - by El Forum - 03-07-2011, 06:12 AM
Form validation with array fields, error message - by El Forum - 03-07-2011, 06:33 AM
Form validation with array fields, error message - by El Forum - 03-07-2011, 08:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB