if(document.formName.newPwd.value==ment.formName.oldPwd.value) alert("一致")2,提交到服务器进行比较
select * from tableNae where passwrod='xxxx