php实现在线通讯录功能(附源码)
本文实例为大家分享php在线通信录编写代码,供大家参考,具体内容如下
<?php
session_start();
define("N",TRUE);
if(empty($_SESSION["uid"])){
header("Location:./login.html");
}
?>
<!doctypehtml>
<html>
<head>
<title>添加</title>
<metahttp-equiv="content-type"content="text/html;charset=utf-8">
<linkrel="stylesheet"href="css/index.css"/>
<scripttype="text/javascript"src="js/calendar.js"></script>
</head>
<body>
<?php
require_once"header.php";
?>
<divid="add">
<h2class="title">添加信息</h2>
<formmethod="post"action="add_do.php">
<tablecellpadding="0"cellspacing="0">
<tr>
<td>姓名:</td>
<td><inputtype="text"name="username"/></td>
</tr>
<tr>
<td>性别:</td>
<td>
男<inputtype="radio"name="usersex"value="1"checked="checked"/>
女<inputtype="radio"name="usersex"value="0"/>
</td>
</tr>
<tr>
<td>生日:</td>
<td><inputtype="text"onclick="newCalendar().show(this);"name="userbirth"/></td>
</tr>
<tr>
<td>电话:</td>
<td><inputtype="text"name="usertel"></td>
</tr>
<tr>
<td>地址:</td>
<td><inputtype="text"name="useraddr"></td>
</tr>
<tr>
<tdcolspan="2"style="text-align:center;">
<inputtype="submit"name="sub"value="提 交"/>
</td>
</tr>
</table>
</form>
</div>
<?php
require_once"footer.php";
?>
</body>
</html>
源码下载:在线通讯录
以上就是本文的全部内容,希望对大家学习php程序设计有所帮助。
热门推荐
1 训练狗狗憋尿
2 狗狗追踪训练
3 狗狗训练要多少钱
5 深圳狗狗训练
6 训练狗狗唤回
7 狗狗叫怎么训练
8 狗狗训练班
10 狗狗社会化训练
11 狗狗叫回训练
12 广州狗狗训练学校
13 狗狗训练躺下
14 狗狗随行训练
15 训练狗狗巡回
16 狗狗要怎么训练
17 狗狗喂食训练
18 训练狗狗躺下