php实现在线通讯录功能(附源码)
更新时间:2016年05月13日 15:59:34 作者:kingflag
这篇文章主要为大家详细介绍了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" /> <script type="text/javascript" src="js/calendar.js"></script> </head> <body> <?php require_once "header.php"; ?> <div 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> </div> <?php require_once "footer.php"; ?> </body> </html>
源码下载:在线通讯录
以上就是本文的全部内容,希望对大家学习php程序设计有所帮助。
相关文章
php自定义函数br2nl实现将html中br换行符转换为文本输入中换行符的方法【与函数nl2br功能相反】
这篇文章主要介绍了php自定义函数br2nl实现将html中br换行符转换为文本输入中换行符的方法,具有与函数nl2br相反的功能,并附带了相应的JS实现方法,需要的朋友可以参考下2017-02-02PHP中数字检测is_numeric与ctype_digit的区别介绍
PHP中的两个函数is_numeric和ctype_digit都是检测字符串是否是数字,但也存在一点区别2012-10-10PHP has encountered an Access Violation at 7C94BD02解决方法
PHP has encountered an Access Violation at 7C94BD02解决方法2009-08-08
最新评论