Welcome Guest, Not a member yet? Register   Sign In
Form Validation with Array for fieldname
#1

[eluser]jrlooney[/eluser]
According to this, my form and validation should work
http://ellislab.com/codeigniter/user-gui...ysasfields

My form has form objects such as :

Code:
<input type="text" size="50" class="text" name="setting[client_name]" value="">

And my validate function includes :

Code:
$rules['setting[client_name]']    = "required";

$fields['setting[client_name]']    = 'Business Name';

But it errors even when a valid value exists in the post. How can I troubleshoot to insure that the fieldname being posted matches the fieldname being set in the validation rules/fields?


Messages In This Thread
Form Validation with Array for fieldname - by El Forum - 04-05-2011, 02:32 PM
Form Validation with Array for fieldname - by El Forum - 04-05-2011, 03:55 PM
Form Validation with Array for fieldname - by El Forum - 04-05-2011, 06:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB