login.php
来自「辅助radius软件的管理程序web平台下的程序代码自己还没有测试过」· PHP 代码 · 共 41 行
PHP
41 行
<?
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 + =
减小字号Ctrl + -
显示快捷键?