网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 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程序设计有所帮助。
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/18 15:33:54