$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>";
}
wuzzxx
for_fun
灬紫羽
_潇潇暮雨