CodeIgniter Forums
Validating a select element that allows multple selections - 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: Validating a select element that allows multple selections (/showthread.php?tid=9116)



Validating a select element that allows multple selections - El Forum - 06-12-2008

[eluser]Eric Cope[/eluser]
I can not seem to find any mention of this anywhere. Does someone know how to validate a Select Form element that allows selecting multiple values?
Thanks.


Validating a select element that allows multple selections - El Forum - 06-12-2008

[eluser]Nikhil Vijayan[/eluser]
Sorry editing my post : bcoz my ansr was irelvant to ur question .. i misundertood the question..

and also do u have noticed that if we give form elemnts name as array

like <input type="checkbox" name="delete[]" value="1">
<input type="checkbox" name="delete[]" value="2">
<input type="checkbox" name="delete[]" value="3">

we cant validate it using ci validation class Sad