< ;h1 class="title">ITT 866 Barcode-Link
;
;
post"> ;
;
}
else
{
//帐号不为5位时
if(strlen($id)<5)
{
echo "";
}
else
{
require ("mysql.php");
$query="select * from login where id='$id' and password='$password'";
$result=$mysql-> query($query);
if($myrow = mysqli_fetch_array($result))
{
//定义全局变量:valid为中文姓名及判断是否为登录用户;pur为用户权限等级1,2,3
$ _SESSION['valid'] =$myrow["name"];
$_SESSION['pur']=$myrow["purview"];
//跳转到主页
echo '';
//echo '';
}
}
}