</tr> </table></td></form> </tr> </table> 处理文件是这样 <? require_once('conn.php'); session_start(); $username=$_POST['username']; $password=$_POST['password']; $exec="select * from admin where username='".$username."'"; if($result=mysql_query($exec)) { if($rs=mysql_fetch_object($result)) { if($rs->password==$password) { $_SESSION['adminname']=$username; header("location:index.php"); } else { echo "<script>alert('Password Check Error!');location.href='login.php';</script>"; } } else { echo "<script>alert('Username Check Error!');location.href='login.php';</script>"; } } else {
|
正在阅读:十天学会php之第七天十天学会php之第七天
2004-02-14 09:33
出处:CSDN
责任编辑:linjixiong
键盘也能翻页,试试“← →”键