Home >php教程 >php手册 >php实现在线通讯录功能(附源码),通讯录源码

php实现在线通讯录功能(附源码),通讯录源码

PHP中文网
PHP中文网Original
2017-03-25 10:36:227149browse

php实现在线通讯录功能(附源码),通讯录源码

本文实例为大家分享php在线通信录编写代码,供大家参考,具体内容如下

<?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实现在线通讯录功能(附源码),通讯录源码的内容,更多相关内容请关注PHP中文网(www.php.cn)!

相关文章:

详解HTML5通讯录获取指定多个人的信息的示例代码

js实现做通讯录的索引滑动显示效果和滑动显示锚点效果

用XML数据岛结合Dom制作通讯录的代码实例详解

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn