注册页面
<body > <h1>注册页面</h1> <form action="zhucechuli.php" method="post"> <p>用户名:<input type="text" name="uid"/> </p> <p>密码:<input type="text" name="pwd"/> </p> <p>姓名:<input type="text" name="name"/> </p> <p>性别:<input type="text" name="sex"> </p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/7fc7563c4182" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">PHP免费学习笔记(深入)</a>”;</p> <p>生日:<input type="text" name="birthday"> </p> <input type="submit" value="注册"/> </form> </body>

注册处理页面
<?php
$uid = $_POST["uid"];
$pwd = $_POST["pwd"];
$name = $_POST["name"];
$sex = $_POST["sex"];
$birthday = $_POST["birthday"];
include ("LZY.class.php");
$db = new LZY();
$sql = "insert into zhuce VALUES ('{$uid}','{$pwd}','{$name}','{$sex}','{$birthday}',0)";
if($db->query($sql,0))
{
header("location:zhuceyemiandenglu.php");
}
else
{
echo "注册失败!";
}登录页面
功能介绍:1:强大的用户管理面版2:分为无需注册的免费发布和VIP注册发布/管理两个系统功能3:注册简便,发布信息管理信息等都相当简单4:用户积分制度5:加入 4 个非常实用的道具(在后台设置道具参数) 标题变色道具 (改变标题颜色) 信息置顶道具 (能使发布信息置顶,使用个数越多,位置越高) 内容贴图道具 (可以发和信息相关的图片) 通过验证道具 (可不通过管理员审核,直
0
<body>
<h1>页面登录</h1>
<form action="zcdlchuli.php" method="post">
<p>用户名:<input type="text" name="uid"/> </p>
<p>密 码:<input type="password" name="pwd"/></p>
<p><input type="submit" value="登录"/> </p>
</form>
</body> 
注册登录处理页面
<?php
$uid = $_POST["uid"];
$pwd = $_POST["pwd"];
include ("LZY.class.php");
$db = new LZY();
$sql = "select * from zhuce where uid='{$uid}'";
$arr = $db->Query($sql);
if($arr[0][1] == $pwd && !empty($pwd))
{
if($arr[0][5])
{
header("location:zcmain.php");
}
else
{
echo "该用户尚未通过审核!";
}
}
else
{
echo "登录失败!";
}注册主界面
<body>
<h1>用户审核</h1>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td>用户名</td>
<td>姓名</td>
<td>性别</td>
<td>生日</td>
<td>操作</td>
</tr>
<?php
include("LZY.class.php");
$db = new LZY();
$sql = "select * from zhuce";
$arr = $db->Query($sql);
foreach($arr as $v)
{
$str = $v[5]?"<span style='background-color:green'>已通过</span>":"<a href='zctongguo.php?uid={$v[0]}'>通过</a>";
echo "<tr>
<td>{$v[0]}</td>
<td>{$v[2]}</td>
<td>{$v[3]}</td>
<td>{$v[4]}</td>
<td>{$str}</td>
</tr>";
}
?>
</table>
</body>
</html> 
审核通过代码
<?php
$uid = $_GET["uid"];
include("LZY.class.php");
$db = new LZY();
$sql = "update zhuce set isok=1 where uid='{$uid}'";
if($db->Query($sql,0))
{
header("location:zcmain.php");
}
else
{
echo "通过失败!";
} 以上就是深入理解用PHP实现页面注册审核的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号