php實現(xiàn)在線通訊錄功能(附源碼)
來源:易賢網(wǎng) 閱讀:3967 次 日期:2016-08-23 15:09:34
溫馨提示:易賢網(wǎng)小編為您整理了“php實現(xiàn)在線通訊錄功能(附源碼)”,方便廣大網(wǎng)友查閱!

本文實例為大家分享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" />

<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>

以上就是本文的全部內(nèi)容,希望對大家學(xué)習(xí)php程序設(shè)計有所幫助。

更多信息請查看網(wǎng)絡(luò)編程
易賢網(wǎng)手機網(wǎng)站地址:php實現(xiàn)在線通訊錄功能(附源碼)
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢回復(fù)僅供參考,敬請考生以權(quán)威部門公布的正式信息和咨詢?yōu)闇?zhǔn)!
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號
云南網(wǎng)警備案專用圖標(biāo)
聯(lián)系電話:0871-65317125(9:00—18:00) 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報警專用圖標(biāo)