php實現(xiàn)在線通訊錄功能(附源碼),通訊錄源碼
本文實例為大家分享php在線通信錄編寫代碼,供大家參考,具體內(nèi)容如下
<?php
session_start();
define("N", TRUE);
if(empty($_SESSION["uid"])) {
header("Location: ./login.html");
}
?>
<!doctype html>
<html>
<head>
<title>添加</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="css/index.css?1.1.1" />
<script type="text/javascript" src="js/calendar.js?1.1.1"></script>
</head>
<body>
<?php
require_once "header.php";
?>
<p id = "add">
<h2 class = "title">添加信息</h2>
<form method = "post" action = "add_do.php">
<table cellpadding = "0" cellspacing = "0">
<tr>
<td>姓名:</td>
<td><input type = "text" name = "username" /></td>
</tr>
<tr>
<td>性別:</td>
<td>
男<input type = "radio" name = "usersex" value = "1" checked = "checked" />
女<input type = "radio" name = "usersex" value = "0" />
</td>
</tr>
<tr>
<td>生日:</td>
<td><input type = "text" onclick="new Calendar().show(this);" name = "userbirth" /></td>
</tr>
<tr>
<td>電話:</td>
<td><input type = "text" name = "usertel"></td>
</tr>
<tr>
<td>地址:</td>
<td><input type = "text" name = "useraddr"></td>
</tr>
<tr>
<td colspan = "2" style = "text-align:center;">
<input type = "submit" name = "sub" value = "提 交" />
</td>
</tr>
</table>
</form>
</p>
<?php
require_once "footer.php";
?>
</body>
</html>
以上就是php實現(xiàn)在線通訊錄功能(附源碼),通訊錄源碼的內(nèi)容,更多相關(guān)內(nèi)容請關(guān)注PHP中文網(wǎng)(ipnx.cn)!
相關(guān)文章:
詳解HTML5通訊錄獲取指定多個人的信息的示例代碼
js實現(xiàn)做通訊錄的索引滑動顯示效果和滑動顯示錨點效果
用XML數(shù)據(jù)島結(jié)合Dom制作通訊錄的代碼實例詳解