请问表单如何进行乘法验证?
我提交一个表单,想对其中的两个输入框中的数字进行乘法验证,比如以下代码:
Ghand=replace(trim(request.form("hand")),"'","")
bz=replace(trim(request.form("bz")),"'","")
mon=replace(trim(request.form("mon")),"'","")
如果我要验证的是mon=ghand*bz成立就进入下一,否则返回,请问该如何写这程序,我这样写怎么也过不了这关!
if mon<>hand*bz then
response.write "<Script language=JavaScript>alert('对不起,您的计算有误');"
response.write "this.location.href='vbscript:history.back()';</script>"
response.end
end if
哪位大虾给点指导?谢谢了!