![]() |
is this validation class limitation? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: is this validation class limitation? (/showthread.php?tid=11010) |
is this validation class limitation? - El Forum - 08-22-2008 [eluser]webbymonk[/eluser] Hey Guys, I have tried to set rules for validation, but i have an array of same-name field Code: <input type="text" name="fieldname[]" /> i tried to set rules in the validation Code: $rules['fieldname'][] = 'required' and the result gave the error Code: A PHP Error was encountered is this validation class limitation? - El Forum - 08-22-2008 [eluser]xwero[/eluser] short answer : yes ![]() There are third party modifications that overcome this restriction. Or you can name the fields individually. is this validation class limitation? - El Forum - 08-22-2008 [eluser]drewbee[/eluser] Try this thread. It is exactly what you are looking for. http://ellislab.com/forums/viewthread/73012/ |