本篇文章为大家展示了使用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"> <h3 class = "title">添加信息</h3> <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怎么实现一个在线通讯录功能,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。