Notice: Undefined index: username in D:\WWW\shopimcoo\admin\doLogin.php on line 3
Notice: Undefined index: password in D:\WWW\shopimcoo\admin\doLogin.php on line 4
出现这个问题是怎么一回事,不知道doLogin.php中有没有出错,我觉得有可能是那个session中的验证码问题,不知道是不是
<?php require_once '../include.php'; $username=$_POST['username']; $password=md5($_POST['password']); $verify=$_POST['verify']; $verify1=$_SESSION['verify']; if($verify == $verify1){ $sql="select * from imooc_admin where username='{$username}' and password='{$password}'"; $res=checkAdmin($sql); //print_r($res); }else{ echo "<script>alert('验证码错误');</scrpit>"; echo "<script>windows.locaion='login.php';</script>"; } ?>