Help with callback functions and form validation |
[eluser]sdotsen[/eluser]
Code works but the username fields ignore all the other rule sets. If I leave the field empty, it doesn't complain that the field is required. If I input a username that exists, the function does work and will tell me that the username is already taken. Code: function register() {
[eluser]JHackamack[/eluser]
FYI: Validation has been replaced with: http://ellislab.com/codeigniter/user-gui...ation.html But they also specify that the fiels are wrapped in an additional array: Code: $config = array(
[eluser]sdotsen[/eluser]
Ugh ... I thought I read somewhere that form_validation was the old one. Damnit! Ok thanks for the heads up.
[eluser]JHackamack[/eluser]
Don't worry, i keep getting confused as to which one is depreciated. Google returns the depreciated one first when you search for "Form Validation CodeIgniter".
[eluser]sdotsen[/eluser]
[quote author="JHackamack" date="1263881320"]Don't worry, i keep getting confused as to which one is depreciated. Google returns the depreciated one first when you search for "Form Validation CodeIgniter".[/quote] Yea, when I search on google that's what keeps coming up. Of course at the top of the wiki page, it does say to use the new "form_validation" library! haha, thats what I get for not reading. BTW, seems like form_validation fixed my issue. Thanks a bunch!
|
Welcome Guest, Not a member yet? Register Sign In |