大家看看我这个怎么不能设置cookierequire_once 'SqlHelp.php';
$name=$_POST['name'];
$pwd=$_POST['pwd'];
$sql="select pwd from user where username='$name'";
$sqlhelper=new SqlHelper();
$res=$sqlhelper->execute_dql2($sql);
$info=$res[0];
$truePassword=$info['pwd'];
if (md5($pwd)==$truePassword)
{
setcookie('name',$name,time()+3600);
header("Location:..iew/backManage.php");
}else{
header("Location:..iew/login.php?note=输入有误,请重新输入!!");
}
谢谢大家了......