View Single Post
Old 03-19-2008, 12:57 PM   #5 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,139
Belisarius is on a distinguished road
Here are some quick hints at debugging those error messages:
Quote:
Undefined index: username in D:\wamp\www\inc\TMPh1hlhxx6mm.php on line 11
"on line 11" means, literally, that this particular error occured literally on the 11th line of the file "D:\wamp\www\inc\TMPh1hlhxx6mm.php". If we jump to that line, we see it is:
Quote:
if($_POST["username"])
"Undefined index" means that in an array, you are attempting to use a key that does not exist. In this case, the array is "$_POST".

Here's something to think about. $_POST is filled with data when a form is submitted. What happens when you load you browse to the login page for the first time, before you've submitted any login information?
__________________
GitS
Belisarius is offline   Reply With Quote