Hi guys, this is my first post. I would also like to make clear that I am totally new to PHP and other languages, I am using a lot of site searches and google to get this working, however I am stuck on one thing.
On the login script that I am using, when it can't find a username, it kills the database saying "Username not registered"
How do I edit the code so that when it can't find a username, it will let me design a page to output which is nicely formatted and better looking than one line of "username not registered"
The code I am using is:
/* Requested Username error checking */
$req_user = trim($_GET['user']);
if(!$req_user || strlen($req_user) == 0 ||
!eregi("^([0-9a-z])+$", $req_user) ||
!$database->usernameTaken($req_user)){
die("Username not registered");
}