PHP Ajax用户注册验证 经测试 表单验证
2010-11-08 21:31
751 查看
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax用户注册验</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="from_ck.js"></script>
</head>
<body>
<div id="reg">
<h1>Ajax用户注册验证</h1>
<FORM name="formUser" onSubmit="return register();" action=user.php
method=post>
<BR>
<TABLE width="100%" align=center border=0>
<TBODY>
<TR>
<TD align=right width="15%"><STRONG>用户名:</STRONG></TD>
<TD width="57%"><INPUT id="username" onBlur="chkUserName(this)"
name="username">
<SPAN id="username_notice" >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>email:</STRONG></TD>
<TD><INPUT id="email" onBlur="checkEmail(this)" name="email">
<SPAN id=email_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>密码:</STRONG></TD>
<TD><INPUT id="password" onBlur="check_password(this)"
onkeyup="checkIntensity(this.value)" type="password" name="password">
<SPAN
id=password_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>密码强度:</STRONG></TD>
<TD><TABLE cellSpacing=0 cellPadding=1 width=145 border=0>
<TBODY>
<TR align=center>
<TD id=pwd_lower width="33%">弱</TD>
<TD id=pwd_middle width="33%">中</TD>
<TD id=pwd_high width="33%">强</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align=right><STRONG>确认密码:</STRONG></TD>
<TD><INPUT id="conform_password" onBlur="check_conform_password(this)"
type="password" name="confirm_password">
<SPAN id=conform_password_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>MSN:</STRONG></TD>
<TD><INPUT name=other[msn]> </TD>
</TR>
<TR>
<TD align=right><STRONG>QQ:</STRONG></TD>
<TD><INPUT name=other[qq]> </TD>
</TR>
<TR>
<TD align=right><STRONG>办公电话:</STRONG></TD>
<TD><INPUT name=other[office_phone]> </TD>
</TR>
<TR>
<TD align=right><STRONG>家庭电话:</STRONG></TD>
<TD><INPUT name=other[home_phone]> </TD>
</TR>
<TR>
<TD align=right><STRONG>手机:</STRONG></TD>
<TD><INPUT name=other[mobile_phone]> </TD>
</TR>
<TR>
<TD> </TD>
<TD><LABEL>
<INPUT type="checkbox" CHECKED value="1" name="agreement" onBlur="check_agreement(this)">
<B>我已看过并接受《<a href="#">用户协议</a>》<SPAN id=agreement_notice >*</SPAN></B></LABEL></TD>
</TR>
<TR>
<TD ><INPUT type=hidden value=act_register name=act></TD>
<TD ><input type=submit value=确认注册 name="Submit1" class="anniu" disabled></TD>
</TR>
<TR>
<TD colSpan=2> </TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</div>
</body>
</html>
完整php代码,数据库自己建立一下,很简单的,注意只有验证,没有帐号录入
http://www.corange.cn//uploadfiles/register_83042.rar
原文地址:http://www.corange.cn/archives/2010/10/3710.html
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax用户注册验</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="from_ck.js"></script>
</head>
<body>
<div id="reg">
<h1>Ajax用户注册验证</h1>
<FORM name="formUser" onSubmit="return register();" action=user.php
method=post>
<BR>
<TABLE width="100%" align=center border=0>
<TBODY>
<TR>
<TD align=right width="15%"><STRONG>用户名:</STRONG></TD>
<TD width="57%"><INPUT id="username" onBlur="chkUserName(this)"
name="username">
<SPAN id="username_notice" >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>email:</STRONG></TD>
<TD><INPUT id="email" onBlur="checkEmail(this)" name="email">
<SPAN id=email_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>密码:</STRONG></TD>
<TD><INPUT id="password" onBlur="check_password(this)"
onkeyup="checkIntensity(this.value)" type="password" name="password">
<SPAN
id=password_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>密码强度:</STRONG></TD>
<TD><TABLE cellSpacing=0 cellPadding=1 width=145 border=0>
<TBODY>
<TR align=center>
<TD id=pwd_lower width="33%">弱</TD>
<TD id=pwd_middle width="33%">中</TD>
<TD id=pwd_high width="33%">强</TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD align=right><STRONG>确认密码:</STRONG></TD>
<TD><INPUT id="conform_password" onBlur="check_conform_password(this)"
type="password" name="confirm_password">
<SPAN id=conform_password_notice >*</SPAN></TD>
</TR>
<TR>
<TD align=right><STRONG>MSN:</STRONG></TD>
<TD><INPUT name=other[msn]> </TD>
</TR>
<TR>
<TD align=right><STRONG>QQ:</STRONG></TD>
<TD><INPUT name=other[qq]> </TD>
</TR>
<TR>
<TD align=right><STRONG>办公电话:</STRONG></TD>
<TD><INPUT name=other[office_phone]> </TD>
</TR>
<TR>
<TD align=right><STRONG>家庭电话:</STRONG></TD>
<TD><INPUT name=other[home_phone]> </TD>
</TR>
<TR>
<TD align=right><STRONG>手机:</STRONG></TD>
<TD><INPUT name=other[mobile_phone]> </TD>
</TR>
<TR>
<TD> </TD>
<TD><LABEL>
<INPUT type="checkbox" CHECKED value="1" name="agreement" onBlur="check_agreement(this)">
<B>我已看过并接受《<a href="#">用户协议</a>》<SPAN id=agreement_notice >*</SPAN></B></LABEL></TD>
</TR>
<TR>
<TD ><INPUT type=hidden value=act_register name=act></TD>
<TD ><input type=submit value=确认注册 name="Submit1" class="anniu" disabled></TD>
</TR>
<TR>
<TD colSpan=2> </TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</div>
</body>
</html>
完整php代码,数据库自己建立一下,很简单的,注意只有验证,没有帐号录入
http://www.corange.cn//uploadfiles/register_83042.rar
原文地址:http://www.corange.cn/archives/2010/10/3710.html
相关文章推荐
- Ajax用户注册验证 验证合格才能提交表单 编辑
- php用户注册表单验证
- php用户注册页面使用js进行表单验证具体实例
- jquery中用$.ajax实现注册(html、jquery、php、接口文档)、ajax验证用户提交数据
- php+ajax用户注册验证用户是否在存(php mysql完整实例)
- php用户注册页面利用js进行表单验证具体实例
- php用户注册页面利用js进行表单验证具体实例
- 新用户注册表单验证,ajax请求和到时定时器
- php用户注册页面利用js进行表单验证
- 注册网页完整案例(jQuery Mobile、validate表单验证、ajax或post、php)
- 从头学CodeIgniter和Doctrine 用户注册【翻译】下(表单辅助函数-表单验证-测试表单)流程详解
- php用户注册页面利用js进行表单验证
- Ajax注册用户时实现表单验证
- Jquery之AJAX用户注册表单验证(Vancl版)
- ajax注册用户无刷新自动验证代码及调用代码(转载)
- formValidator用户注册表单自动验证
- 用户注册页面--ajax.php.js.css
- 用户登录与注册表单验证代码
- PHP用户注册邮箱验证激活帐号
- AJAX+C# 验证用户是否被注册