$mm=md5(md5($_POST['mm'],true));$sql="select * from `user` where `user`='$dl'";$fan=mysql_query($sql);$a=mysql_fetch_array($fan);if($a) { echo $mm; echo "<br />"; echo $a['password']; if($mm==$a['password']) { $_SESSION['name']=$a['user']; $_SESSION['id']=$a['id']; echo"登录成功<br/><br/><br/><a href='index.php'>欢迎进入</a>"; header('index.php'); } else { echo"登录失败</br>"; echo"<a href='zhuce.php'>点击注册</a>"; } } else{ echo"请输入完整的信息<a href='denglu.php'>返回登录</a>"; }
- 4 回答
- 0 关注
- 4502 浏览
添加回答
举报
0/150
提交
取消