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?1.1.1" />
<script type="text/javascript" src="js/calendar.js?1.1.1"></script>
</head>
<body>
<?php
require_once "header.php";
?>
<p 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>
</p>
<?php
require_once "footer.php";
?>
</body>
</html>以上就是php实现在线通讯录功能(附源码),通讯录源码的内容,更多相关内容请关注PHP中文网(www.php.cn)!
相关文章:
云枫工作室企业网站Version3.0是由云枫工作室独立开发的一个适用于普通企业的网站展示系统.系统环境:asp+access(注:网站风格是与其它版本不相同的,并不是其它版本的升级版)网站功能主要有新闻管理系统、信息管理系统、产品管理系统、人才招聘管理、友情链接管理、通讯信息管理、留言信息管理使用步骤1、把网站源代码拷贝到服务器空间的根目录下。(注:服务器空间需支持ASP脚本运行)2、网站后台地
0
立即学习“PHP免费学习笔记(深入)”;
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号