php表单form输入值检测!!为什么不检测直接跳过去了??

来源:百度知道 编辑:UC知道 时间:2024/07/02 01:03:24
表单form输入值检测!!为什么不检测直接跳过去了??
<legend>个人证件挂失登记</legend>
<form name="form2" id="form2" method="post" action="personal_insert.php" onsubmit="return personalcheck()">
<div >
<label>客户姓名:</label>
<input name="psname" type="text" id="psname" style="width:150px;height:26px" />
</div>
<br/>
<div><label>证件种类:</label>
<input name="pscard" type="text" id="pscard" style="width:150px;height:26px" />
</div><br/>
<div><label>证件编码:</label>
<input name="psnumber" type="text" id="psnumber" style="width:150px;height:26px" />
</div>
</form>
personalcheck()函数体有

不知道你的验证函数personalcheck是怎么写的,如果有js脚本错误,就直接提交了

函数有问题.或者验证通过了,也有可能没通过,但是你没让它停止

把personalcheck()函数贴出来啊

要把你的personal_insert.php也要贴出来啊