20,359
社区成员
发帖
与我相关
我的任务
分享
function checkForm2(){
checkFormState=0;
checkNull("oPassword|nPassword|password3")
checkPassword('nPassword|password3');
if(checkFormState!=0){
return false;
}else{
return true
}
}
<div id="columns_content2">
<form action="../userManage/js_updatePwd.php" method="post" id="form2" name="form2" onsubmit="return checkForm2()">
<table border="0" cellspacing="5" cellpadding="0">
<tr>
<td>原始密码:</td>
<td><input type="password" title="原始密码" name="oPassword" id="oPassword" /></td>
<td> </td>
</tr>
<tr>
<td>新密码:</td>
<td><input type="password" title="新密码" name="nPassword" id="nPassword" /></td>
<td> </td>
</tr>
<tr>
<td>重复新密码:</td>
<td><input type="password" title="重复新密码" name="password3" id="password3" /></td>
<td> </td>
</tr>
<tr>
<input type='hidden' name='nuserid' id='nuserid' value="<?php echo $userid;?>" />
<td colspan="2"><input type="image" src="style/img/uC_OK.gif" /></td>
<td> </td>
</tr>
</table>
</form>