Form Validation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Form Validation (/showthread.php?tid=35944) |
Form Validation - El Forum - 11-16-2010 [eluser]Thiago Leao[/eluser] Hi friends, What is happening, I'm validating a form. But the error messages are reaching another form on the same page. Anyone know please tell me, how do I restrict the error messages to only one form? thanks! Form Validation - El Forum - 11-16-2010 [eluser]Deveron[/eluser] Hi Thiago, do you use unique input names? Every form should have his own unique name as well. Form Validation - El Forum - 11-16-2010 [eluser]Thiago Leao[/eluser] Are with different names! 1º form Code: <?php 2º Form Code: <? Form Validation - El Forum - 11-16-2010 [eluser]Deveron[/eluser] In your login and register form you are using input fields with the same name. 1: login 2: senha. I think you have to change the names in one of your forms. Form Validation - El Forum - 11-16-2010 [eluser]InsiteFX[/eluser] Because you are using echo validation_errors(); in your first form which echo's all form errors! InsiteFX Form Validation - El Forum - 11-16-2010 [eluser]Thiago Leao[/eluser] was the echo! I took and it worked!! thanks |