📄 login.php
字号:
<?
session_start();
?>
<?
include "sql.php"
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<?
if ($ok<>"提交")
{
echo "<b>非法访问,请从登陆页面进入</b>";
}
else
{
$sql="select * from admin where operator='$textfield' and password='$textfield2'";
//echo $sql."<br>";
$result=mysql_query($sql);
if ($row=mysql_fetch_row($result))
{
$uer=$textfield;
//echo "uer=".$uer."<br>登陆成功<br>";
//echo "<a href='nindex.php'>进入</a>";
session_register(uer);
echo "<script language='javascript'>";
echo " location='nmis.php';";
echo "</script>";
}
else
{ echo "<a href='index.htm'>登陆失败,用户名或密码错误!<br></a>";
}
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -