日期:2014-05-16 浏览次数:20427 次
function chenkName(userInfo){
$.get('../new_register.php',{userName : $("#userName").val()},function(showMsg){
$("#s_userName").html(showMsg);
});
}
</script>
<form action="../register.php" method="post" name="register">
账户:<input type="text" name="userName" id="userName" maxlength="12" onpropertychange="chenkName('userName');" /><span id="s_userName">*请输入6-12位用户名</span><br />
密码:<input type="password" name="userPass" id="userPass" maxlength="24" onpropertychange="chenkName(userPass);" /><span id="s_userPass">*请输入6-12位密码!</span><br />
密码:<input type="password" name="userPass1" id="userPass1" maxlength="24" onpropertychange="chenkName('userPass1');" /><span id="s_userPass1">*再次输入密码确认!</span><br />
邮箱:<input type="text" name="usereMail" id="usereMail" maxlength="12" onpropertychange="chenkName('usereMail');" /><span id="s_usereMail"></span><br />
性别:<input type="radio" name="userSex" value="男" checked="checked" onpropertychange="chenkName('userSex');" />男 <input type="radio" name="userSex" value="女" onpropertychange="chenkName('userSex');" />女<span id="s_userSex"></span><br />
<input type="submit" value="注册" name="submit" id="submit" />