<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>&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