Form validation - 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: Form validation (/showthread.php?tid=15387) |
Form validation - El Forum - 02-03-2009 [eluser]sabya[/eluser] I am using CodeIgniter CI_Form_validation. Problem 1: I have two input fields: "Password" and "Password Confirmation". The name of the input fields are: 'pass' and 'passconf' respectively. I am setting the rule for 'passconf' as: - Code: $this->form_validation->set_rules('passconf', The problem is when I am printing the error through: Code: echo validation_errors(); Code: The Password Confirmation field does not match the pass field. But I want the labels to be used instead of the HTML input names. So, basically the error SHOULD show up as: - Code: The Password Confirmation field does not match the Password field. That is: it should show 'Password' instead of 'pass'. I am attaching the test files: - Form validation - El Forum - 02-04-2009 [eluser]xzela[/eluser] check out this thread here: It's a known bug in the Form_Validation class http://ellislab.com/forums/viewthread/94977/ |