PHP会员系统(5)

PHP会员系统(5)-后台登陆页面

这些教程来源于中国教程网  欢迎转载,转载本站文章请注明!否则必定追究责任!
如果你需要这个系统的代码请加入中国教程网PHP群:8920718

http://www.cnjiaocheng.com

 

admin_login.php页面代码如下

http://www.cnjiaocheng.com

 

<?php
/*
@web 管理员登陆
@author yangfan
@2007/12/19/9:40
@keyword 登陆
*/
//连接数据库
include ("config.php");
//点击提交
if($submit){
//获取表单传递过来的值
 $username = $_POST['username'];
 $password = $_POST['password'];
 
 $o   = "SELECT * FROM admin where username = '$username' AND password = '$password' ";
 $r   = mysql_query($o);
 $i   = 0;
 while($row=mysql_fetch_object($r)){
  $i++;
 }
 if($i!=0){

来源中国教程网

 


?>
<html>
 <head>
  <title>管理员登陆</title>
 </head>
 <body>
 管理员登陆:
  <hr size="1" color="#000" width="50%"align="left">
  <form action="admin_login.php" method="POST">
   用户名:
   <input type="text" name="username" id="username" size="15"><br>
   密&nbsp;&nbsp;码:
   <input type="password" name="password" id="password" size="15"><br>
   <input type="submit" name="submit" id="submit" value="登陆">
   <input type="reset">
  </form>
 </body>

来源中国教程网

 

http://www.cnjiaocheng.com

</html>

来源中国教程网

  header("location:admin_index.php");
 }
}

http://www.cnjiaocheng.com

 


<script language="javascript" src="/plus/count.php?aid=768&mid=" type="text/javascript"></script> <script type="text/javascript"> document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "/r/n本篇文章来源于中国教程网(www.cnjiaocheng.com)教程地址:"+location.href; clipboardData.setData("text", text); } }, 100 ) } </script>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值