该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
else {document.login.setAttribute("action","index1.php");document.login.submit();}}
$randcode=$_SESSION['randcode'];if(isset($_POST['denglu'])){$username=$_POST['username'];$password=$_POST['password'];$yanzheng=$_POST['yanzheng'];echo "";if($randcode==$yanzheng) {$conn=mysql_connect("localhost","root",""); mysql_select_db("phpwork",$conn); mysql_query("set names gb2312"); $sql="select * from 'userinfo' where username='$username'"; $checkuser=mysql_query($sql,$conn); $rows=mysql_num_rows($checkuser); $res=mysql_fetch_array($checkuser); if(intval($rows)==0){echo "";} else if($password!=$res[userpwd]){echo "";} else {$_SESSION['username']=$username; $_SESSION['password']=$password; echo "";} }
else echo "";}
?>