Login Page, Incorrect Login[SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

Login Page, Incorrect Login[SOLVED]

Post 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?
Last edited by james3302 on Mon Jul 07, 2008 7:06 am, edited 1 time in total.
User avatar
Jasheppard
Forum Newbie
Posts: 24
Joined: Tue Jun 17, 2008 11:44 pm

Re: Login Page, Incorrect Login

Post 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...
Post Reply