About form and php data exchange issues
haha
haha 2019-04-26 21:43:29
0
0
897

This large piece of code was able to run normally in 2013, when I was using Windows XP. Now I take out this code and want to modify it before using it. This code is to stay on the current login page when the id and password are not entered. When the id and password are entered in the form, the id and password are checked from the database. If they are correct, the code enters the main page. But now after reinstalling the new version of appserv, the system is win10. I found that when the id and password are not set, I can enter the part where the if(!isset($id)&&!isset($password)) condition is established, but even if I enter the id and password It is also impossible to enter the else part of if(!isset($id)&&!isset($password)).

Please help me find out whether the system or PHP has been upgraded or whether it is caused by other problems. Thank you.

//Login interface
if(!isset($id)&&!isset($password))
{
? >






ITT 866 barcode link



;


;



>
div>







}
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 '';
}
}
}


haha
haha

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!