拉风的咖菲猫
if($_POST['id']=='admin'){$pw=md5($_POST['pw']);if($pw='e1bfd762321e409cee4ac0b6e841963c'){setcookie("cookie","ok");echo "<script language=\"javascript\">location.href='login.php';</script>";}}用户名和密码都正确,会跳转到login.php ,程序按顺序执行到echo "<script language=\"javascript\">location.href='login.php';</script>";就会跳转到login.php