![]() |
What do form validation errors return as when empty? - 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: What do form validation errors return as when empty? (/showthread.php?tid=53449) |
What do form validation errors return as when empty? - El Forum - 07-24-2012 [eluser]ShoeLace1291[/eluser] I want to show my form validation errors indivudually and i was wondering... do empty validation errors return as blank strings, or as FALSE? What do form validation errors return as when empty? - El Forum - 07-24-2012 [eluser]sith4life[/eluser] Code: echo form_error('field_name'); refer to http://ellislab.com/codeigniter/user-guide/libraries/form_validation.html for more info What do form validation errors return as when empty? - El Forum - 07-24-2012 [eluser]Aken[/eluser] Empty strings. I'd suggest poking through the source code yourself to see how it works. Helps you learn and answers your question. What do form validation errors return as when empty? - El Forum - 07-24-2012 [eluser]jakelehner[/eluser] You could also probably use the php function gettype figure that out pretty quick. http://php.net/manual/en/function.gettype.php |