After the administrator logs in through the username and password and submits, an error that the username and password are not defined appears.
龙虾也忧愁
龙虾也忧愁 2019-05-13 21:26:43
0
0
1136

<?php  include"config.php";//session_start();//初始化变量session$name=$_POST["name"]; $password=$_POST["password"];$sql="select * from admins where name='{$name}' and password ='{$password}'"; echo $sql;$smt=$pdo->prepare($sql);$smt->execute();$row=$smt->fetch();if($row){ $_SESSION['name']=$row['name']; echo"<script>alert('登录成功')</script>"; echo"<script>location='index.php'</script>";       }else{ echo"<script>alert('cuwu')</script>"; //echo"<script>location='denglu.php'</script>";}?>

龙虾也忧愁
龙虾也忧愁

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template