Welcome Guest, Not a member yet? Register   Sign In
Proper displaying of errors
#1

[eluser]Rey Philip Regis[/eluser]
Hi guys,

Just want to know how to display errors on the view. Example I have a login application then the user inputted a wrong username and a password. I want the program to go back to the login page and then display at the bottom or top that he/she inputted wrong credentials.. How do you do that in the proper way? Cause what I do is, if he inputted a wrong password and username, I will create a session and put the error message in that session and display the session in the login page. Any other good ideas?

Any suggestions are appreciated thanks in advance.....
#2

[eluser]runrun[/eluser]
if you want to display errors in the view, use this code in the view

<?php echo validation_errors(); ?>
#3

[eluser]flaky[/eluser]
at the user guide
Form Validation




Theme © iAndrew 2016 - Forum software by © MyBB