php實(shí)現(xiàn)在線通訊錄功能(附源碼)
本文實(shí)例為大家分享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>
源碼下載:在線通訊錄
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家學(xué)習(xí)php程序設(shè)計(jì)有所幫助。
- java開發(fā)微信公眾號(hào)支付
- java微信公眾號(hào)開發(fā)(搭建本地測(cè)試環(huán)境)
- java實(shí)現(xiàn)微信支付(服務(wù)端)
- java微信公眾號(hào)開發(fā)第一步 公眾號(hào)接入和access_token管理
- Java實(shí)現(xiàn)微信紅包分配規(guī)則
- java微信開發(fā)API第一步 服務(wù)器接入
- java微信開發(fā)第二步 獲取消息和回復(fù)消息
- Android利用Intent讀取和更新通訊錄
- java微信開發(fā)之上傳下載多媒體文件
- java微信企業(yè)號(hào)開發(fā)之通訊錄
相關(guān)文章
php flush無效,IIS7下php實(shí)時(shí)輸出的方法
這篇文章主要介紹了php flush無效,IIS7下php實(shí)時(shí)輸出的方法,需要的朋友可以參考下2016-08-08
php讀取javascript設(shè)置的cookies的代碼
最主要的就是給cookies設(shè)置一個(gè)名字,在javascript設(shè)置cookies的時(shí)候不要用無參數(shù)函數(shù),那樣用的話php沒辦法讀取2010-04-04
最準(zhǔn)確的php截取字符串長(zhǎng)度函數(shù)
這篇文章為大家分享了最準(zhǔn)確的php截取字符串長(zhǎng)度函數(shù),最精確的截取長(zhǎng)度,大家可以在此基礎(chǔ)上進(jìn)行改進(jìn),感興趣的小伙伴們可以參考一下2015-10-10
PHP中使用crypt()實(shí)現(xiàn)用戶身份驗(yàn)證的代碼
在開發(fā)PHP應(yīng)用中如果不想自己開發(fā)新的加密算法,還可以利用PHP提供的crypt()函數(shù)來完成單向加密功能2012-09-09
phpmyadmin里面導(dǎo)入sql語句格式的大量數(shù)據(jù)的方法
phpmyadmin里面導(dǎo)入sql語句格式的大量數(shù)據(jù)的方法2010-06-06
一個(gè)基于PDO的數(shù)據(jù)庫(kù)操作類
工作一年以來,所做的項(xiàng)目使用的都是ADODB,但其的代碼臃腫和執(zhí)行效率低導(dǎo)致現(xiàn)在需要更換。2011-03-03
php常用字符串String函數(shù)實(shí)例總結(jié)【轉(zhuǎn)換,替換,計(jì)算,截取,加密】
這篇文章主要介紹了php常用字符串String函數(shù),結(jié)合實(shí)例形式總結(jié)分析了php常用字符串函數(shù)的功能與使用技巧,包括字符串的轉(zhuǎn)換、替換、計(jì)算、截取、加密等各種常用操作相關(guān)函數(shù),需要的朋友可以參考下2016-12-12

