<form action="admin.php" method="post" id="pwdForm" name="pwdForm" onSubmit="return checkpass();">
<input type="hidden" value="pwdedit" name="do" />
<div class="opt_p_detail_m">
<h3>修改超级管理员密码<span class="f12r">*</span><span style="font-weight: normal;">为必填项</span></h3>
<table class="optDtup">
<tbody><tr>
<td class="optTd1 trVt"><span class="f12r">*</span>旧  &nbsp;密  &nbsp;码:</td> 
<td class="optTd2">
<input type="password" id="oldpass" name="oldpass" maxlength="20" class="optDinpt"/>
</td>                   
</tr>                     
<tr>
<td class="optTd1 trVt"><span class="f12r">*</span>新   &nbsp;密   &nbsp;码:</td>
<td class="optTd2">     
<input type="password" id="newpass" name="newpass" class="optDinpt" maxlength="20"/>
</td>                   
</tr><tr>
<td class="optTd1 trVt"><span class="f12r">*</span>新密码确认:</td>
<td class="optTd2">
<input type="password" id="compass" name="compass" class="optDinpt" maxlength="20"/>
</td>                   
</tr></tbody>
</table>
</div>
<div class="addFooter OptFooter">
<div class="fLeft">         
<input type="submit" class="btnFnt fb" value=" 确 定 "/>
<input type="reset" class="btnFnt" value=" 取 消 "/>
</div>
<div class="fRig"></div>
</div>
</form>这是我的表单代码,提交的时候要检查旧密码输入是否正确。如果不正确就显示就密码输入有误,修改密码的功能也就不执行了。
但是我在做操作的时候,尽管我旧密码输入正确了,他还是会显示旧密码输入错误,但是后面else语句修改密码却还是执行了。可是这样的问题在firefox 上面又不会出现,在ie上就会。帮忙解释这是什么问题。