Validating multi-dimensional arrays for conditional fields - 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 multi-dimensional arrays for conditional fields (/showthread.php?tid=20106) |
Validating multi-dimensional arrays for conditional fields - El Forum - 06-28-2009 [eluser]Unknown[/eluser] Hi, I know this has been discussed a lot in the forums but I still can't get my head around validation of multi-dimensional arrays. Can someone help with this? I am collecting information about people's children. So if they have children then they need to enter each child name and date of birth (for at least one child). Here is an example of the form being generated: Code: <!-- do you have children radio button //--> I tried this validation code: Code: // If YES selected, then validate the array of children submitted I have a function called "child_date_check" to use as a callback on the date values. Thanks in advance! |