Login Form Error question - 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: Login Form Error question (/showthread.php?tid=40060) |
Login Form Error question - El Forum - 03-28-2011 [eluser]R_Nelson[/eluser] I have a simple Login.php Code: <fieldset> the function Validate_login Code: function validate_login() and the User_model Code: function validate() Code: $this->form_validation->set_message('','User Name & Password do not Match'); Login Form Error question - El Forum - 03-29-2011 [eluser]Suhas nazir[/eluser] Hey $this->form_validation->set_message is something that deals with setting of message based on form validation ,And in your case this is not a form validation error right.So i think the best way is to change the status of a variable based on affected rows ,and send it to view and where u need to check the status and put the needed error message....... Login Form Error question - El Forum - 03-29-2011 [eluser]R_Nelson[/eluser] I would like to just ad the error to the form validation output so i don't have to put in an if statement and all that. I'm gonna go look at the library and see how it saves it and see if i can just add to the array |