PHP用户注册根本处理

WBOY
Release: 2016-06-13 12:18:06
Original
912 people have browsed it

PHP用户注册基本处理

1、本文代码能够完成的功能有:用户注册,用户注册项检查,用户名重复检测(该功能要重新设计),首先要在mysql数据库test中创建users表格

2、代码

index.html

注册页面
Copy after login
用 户 名: 检测用户
真实姓名: *
密 码: *
确认密码: *
性 别:
联系电话:
QQ 号码:
Email: *
个人主页:
家庭住址:

deal_register.php

alert('注册成功!');window.location='index.html';"; } else { echo ""; }?>
Copy after login

checkuser.php

用户名 $name 已经存在!"; } else { echo "用户名 $name 通过检测 !"; }?>
Copy after login

connect_mysql.php

Copy after login


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn