主题:用户输完密码后,我想在点击网页的form提交按钮时对密码进行加密处理再提交,请问submit那里该怎
用户输完密码后,我想在点击网页的form提交按钮时对密码进行加密处理再提交,请问submit那里该怎么处理?
<form name="Login" action="ChkLogin.asp" method="post" target="_parent" >
<input name="user"></input>
<input name="pass"></input>
<input name="submit" type="submit" value="提交"></input>
</form>
<script >
function MD5(str)
{
.....
}
</script>
如果直接提交数据是没有问题的,问题是想提交“MD5(Pass.value)”参数给chk.asp不知道该怎么做呢?
<form name="Login" action="ChkLogin.asp" method="post" target="_parent" >
<input name="user"></input>
<input name="pass"></input>
<input name="submit" type="submit" value="提交"></input>
</form>
<script >
function MD5(str)
{
.....
}
</script>
如果直接提交数据是没有问题的,问题是想提交“MD5(Pass.value)”参数给chk.asp不知道该怎么做呢?