Hey before my page totally loads you can see this in the browser window...

Notice: Undefined Index: username in /home/spaodesi/public_html/preview/index.php on line 23

Notice: Undefined Index: pass in /home/spaodesi/public_html/preview/index.php on line 24

What does this mean??

    It means you're trying to access an index in an array that doesn't exist.

    For example, if you said this:

    if($_POST['username'] && $_POST['password']) {
       check_login();
    }

    but the user hasn't submitted the login form yet, you would see such an error, because you're trying to access an array item that doesn't exist.

    Instead, the above code should be written:

    if( isset($_POST['username']) && isset($_POST['password']) ) {
       check_login();
    }

      ohhhh, I got ya...thankyou very much for your reply.

        Write a Reply...