getting notice like undefined index

Posted by user2533308 on Stack Overflow See other posts from Stack Overflow or by user2533308
Published on 2013-06-28T22:19:51Z Indexed on 2013/06/28 22:21 UTC
Read the original article Hit count: 278

Filed under:
|
$result = mysql_query("SELECT * FROM customers 
WHERE loginid='$_POST[login]' AND accpassword='$_POST[password]'");


    if(mysql_num_rows($result) == 1)
{
    while($recarr = mysql_fetch_array($result))
    {

    $_SESSION[customerid] =     $recarr[customerid];
    $_SESSION[ifsccode] =   $recarr[ifsccode];
    $_SESSION[customername] =   $recarr[firstname]. " ". $recarr[lastname];
    $_SESSION[loginid] =    $recarr[loginid];
    $_SESSION[accstatus] =  $recarr[accstatus];
    $_SESSION[accopendate] =    $recarr[accopendate];
    $_SESSION[lastlogin] =  $recarr[lastlogin];     
    }
    $_SESSION["loginid"] =$_POST["login"];
    header("Location: accountalerts.php");
}
else
{
    $logininfo = "Invalid Username or password entered";
}   

Notice: Undefined index:login and Notice: Undefined index:password try to help me out getting error message in second line

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql