Help with variables - 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: Help with variables (/showthread.php?tid=45792) |
Help with variables - El Forum - 10-05-2011 [eluser]Unknown[/eluser] Hi everyone, I have a view that has a form that allows a user to enter guest details. They submit the form and it needs to check to see if they have entered in all the fields. The problem I am having is that it is only evaluating the first guests details and not the rest. What I want to do is save all the text boxes in an array and then check to see if each one is empty, if it is, then I want to alert them. It doesn't seem to be working. Here is my code: This dynamically displays the amount of guests input boxes depending on the input of how many they want. Code: [removed] |