PHP Ajax用户注册验证 经测试 表单验证

<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)"
οnkeyup="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>&nbsp;</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=确认注册&nbsp;&nbsp;&nbsp; name="Submit1" class="anniu" disabled></TD>
</TR>
<TR>
<TD colSpan=2>&nbsp;</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

转载于:https://www.cnblogs.com/zerogo/archive/2010/11/08/1872140.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值