Beginner gets some problem |
[eluser]Achmed1[/eluser]
hi This is my first post Im new to codeigniter im having some problems i want to make a simpel login and a validate system example when i put a 4 charater then i get a message like your email must heave more than 4 this is my code. login.php Code: <html> inloggen.php Code: <?php
[eluser]mi6crazyheart[/eluser]
Why u want to force user for a specif type(min. 4 char) of email-id. Bcz, email-id is it self a unique address. Any way, if u want to restrict user for 4 character email id then i think this validation rule will help u... Code: $this->form_validation->set_rules('username', 'Username', 'required|min_length[4]'); For more info: http://ellislab.com/codeigniter/user-gui...ation.html
[eluser]mikeymayhem[/eluser]
Think you should have a good read of the user guide about form validation but heres a step in the right direction. hope it helps you along the way Controller Code: <?php
[eluser]Achmed1[/eluser]
This helped my thank you my problem was that i dont heave used the else $this->load->view('login'); to show the errors on the screen thank you very much |
Welcome Guest, Not a member yet? Register Sign In |