![]() |
Validation problem - 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: Validation problem (/showthread.php?tid=39803) |
Validation problem - El Forum - 03-21-2011 [eluser]Frank Rocco[/eluser] Hello, the code below produces a field is required message when the form is first displayed. I cannot seem to fix this. Does the code look ok? Code: //View Thank you... Validation problem - El Forum - 03-21-2011 [eluser]danmontgomery[/eluser] You're running validation without checking if the form has been submitted: Code: if ($this->form_validation->run()) Validation problem - El Forum - 03-21-2011 [eluser]Frank Rocco[/eluser] Thanks, the error message is still showing. Could this be a bug in the latest CI2? Validation problem - El Forum - 03-22-2011 [eluser]Frank Rocco[/eluser] It turns out, I was calling the edit form from my list page using a form post with an edit button. I changed it to an anchor and the problem was resolved. |