为什么这个打开是一个验证码?
<?php
require_once '../include.php';
$username=$_POST['username'];
//$username=addslashes($username);
$password=md5($_POST['password']);
$verify=$_POST['verify'];
$verify1=$_SESSION['verify'];
//$autoFlag=$_POST['autoFlag'];
if($verify==$verify1){
$sql="select * from imooc_admin where username='{$username}' and password='{$password}'";
$res=checkAdmin($sql);
var_dump($res);
//print_r($res);
/* if($row){
如果选了一周内自动登陆
if($autoFlag){
setcookie("adminId",$row['id'],time()+7*24*3600);
setcookie("adminName",$row['username'],time()+7*24*3600);
}
$_SESSION['adminName']=$row['username'];
$_SESSION['adminId']=$row['id'];
alertMes("登陆成功","index.php");
}else{
alertMes("登陆失败,重新登陆","login.php");
} */
}else{
echo "<script>alert('验证码错误')</script>";
echo "<script>window.location='login.php';</script>";
//alertMes("验证码错误","login.php");
}