This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / With VBscript, I write a function to check the form input.An alert pops out when input is invalid. But when i click OK., the input is sitll sent to other page.How to avoid sending wrong input in this case. THANKS A LOT.
-waokool(waokool);
2002-8-8
{162}
(#682196@0)
-
你的代码和书上的有什么区别没有?
-hugefox(长得象熊的狐狸);
2002-8-8
(#682201@0)
-
What u mean?
-waokool(waokool);
2002-8-8
(#682207@0)
-
我的意思是:如果有区别,就先按书上的写。等你明白了再想自己的方法
-hugefox(长得象熊的狐狸);
2002-8-8
(#682211@0)
-
你提交form的语句写在哪里了?
-guestagain(guest again);
2002-8-8
(#682217@0)
-
<form name="login" onsubmit="return validate() method="Post" action="http://xxxxx//login.asp">
-waokool(waokool);
2002-8-8
(#682275@0)
-
你这样判断不判断结果是一样的,反正都提交了。你的button类型是submit吧?你要作判断,就不要用自动提交,而是在验证通过后人工提交。
-guestagain(guest again);
2002-8-8
(#682324@0)
-
I solved the problem. Thanks for your hint that not neccessarily use submit. Now I use onclick to check the form field. If all is Ok, I use document.form.submit(). to submit the form to other page.Thank you again.
-waokool(waokool);
2002-8-8
(#682298@0)