Page 1 of 1

Login Page, Incorrect Login[SOLVED]

Posted: Sat Jun 28, 2008 7:25 am
by james3302
After the user incorrectly types the username/password he is redirected back to the login page, but how do I display "Incorrect username/password" on that page?

Re: Login Page, Incorrect Login

Posted: Sat Jun 28, 2008 11:16 am
by Jasheppard
what i use is a status query so if the login failed, i just add &status=2 to the url and on the page i just have:

Code: Select all

<?php if ($_GET["status"]==2) echo "Failed to login!"; ?>
or

Code: Select all

<?php if ($_GET["status"]==3) echo "You have been banned!"; ?>
or

Code: Select all

<?php if ($_GET["status"]==4) echo "You cannot login right now... due to server issues..."; ?>
 
ect... ect...