上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 会话控制是一种跟踪用户的通信方式,使用会话控制主要基于以下几点:由于http协议的无状态性,使得不能通过协议来建立两次请求之间的关联;对于通常的页面之间的数据传递方式get和post而言,主要处理参数的传递、资料的输入两个页面间简单的数据传递,对于一个用户的在网站上的多个页面,多种不同的数据,可能还 阅读全文
posted @ 2017-09-08 21:33 WORSHIP亚萨 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1.用户注册页面 页面效果: 代码如下: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="bootstrap/js/jquery-1.11.2.min.js"></script> <sc 阅读全文
posted @ 2017-09-07 20:42 WORSHIP亚萨 阅读(4669) 评论(1) 推荐(0) 编辑
摘要: 遍历一个数组是编程中最常见不过的了,这里讨论下for和foreach两种方法: 首先,我们先准备两个用于遍历的数组: $arr1=array(1=>'a', 3=>22, 5=>'b', 4=>'c', 8=>'d'); $arr2=array('a'=>'aaa', 'b'=>'bbb', 'c' 阅读全文
posted @ 2017-09-06 22:18 WORSHIP亚萨 阅读(644) 评论(0) 推荐(1) 编辑
摘要: 租房页面如图: 代码如下: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>租房子</title> <script src="bootstrap/js/jquery-1.11.2.min.js"></script> //引入boo 阅读全文
posted @ 2017-09-05 20:44 WORSHIP亚萨 阅读(514) 评论(0) 推荐(1) 编辑
摘要: 1.实现分页功能 <body><table width="100%" border="1"> <thead> <tr> <th>代号</th> <th>名称</th> <th>价格</th> </tr> </thead> <tbody> <?php require_once "./DBDA.clas 阅读全文
posted @ 2017-09-04 22:29 WORSHIP亚萨 阅读(1456) 评论(0) 推荐(1) 编辑
摘要: 建立数据库访问类的封装 <?php class DBDA { public $host = "localhost"; //服务器地址 public $uid = "root"; //数据库的用户名 public $pwd = ""; //数据库的密码 public $dbname = "";//数据 阅读全文
posted @ 2017-09-03 23:14 WORSHIP亚萨 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 注册页面 <body ><h1>注册页面</h1><form action="zhucechuli.php" method="post"><div>用户名:<input type="text" name="uid"/> </div><div>密码:<input type="text" name="p 阅读全文
posted @ 2017-09-02 22:51 WORSHIP亚萨 阅读(8015) 评论(0) 推荐(0) 编辑
摘要: 第一步:在数据库中建立要操作的信息表 如下图: 第二步:实现对该信息表中数据的删除功能 代码如下:main(主页面) <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>删除功能</title> <script src="bootst 阅读全文
posted @ 2017-09-01 22:40 WORSHIP亚萨 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: main页面(主页面) <table width="100%" border="1" cellpadding="0" cellspacing="0"><tr><td>代号</td><td>姓名</td><td>性别</td><td>民族</td><td>生日</td><td>操作</td></tr> 阅读全文
posted @ 2017-08-31 22:27 WORSHIP亚萨 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 登录界面 <body><form action="login1.php" method="post"><div>用户名:<input type="text" name="uid" /></div><br /><div>密码:<input type="password" name="pwd" /></ 阅读全文
posted @ 2017-08-30 22:37 WORSHIP亚萨 阅读(996) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页