强制使用经典ASP提交 [英] force a submit in classic ASP
问题描述
大家好我该如何以经典的asp格式强制提交.当我按如下方式调用我的asp页面时:
http//<文件服务器>/Allscripts2.asp?txtacctnNum = 111111& txtMrn = 99999
我的asp页面具有以下
< FORM method = POST name ="form1">
< INPUT type ="hidden" name ="txtacctNum" value = Request.QueryString("txtacctNum")>
< INPUT type ="hidden" name ="txtMRN" value = Request.QueryString("txtMRN")>
< INPUT type ="submit">
</form>
我不希望用户单击提交.我希望脚本自动运行.
有任何想法吗.
我是新来的,所以我要学习任何想法或代码示例.
谢谢
Jose''
Hi All How can I force a submit in a classic asp form. When I call my asp page as follows:
http//<fileserver>/Allscripts2.asp?txtacctnNum=111111&txtMrn=99999
My asp page has the following
<FORM method=POST name="form1">
<INPUT type="hidden" name="txtacctNum" value=Request.QueryString("txtacctNum") >
<INPUT type="hidden" name="txtMRN" value=Request.QueryString("txtMRN")>
<INPUT type="submit" >
</form>
I don''t want the users to click submit. I want the script to run automatically.
Any ideas.
I''m new to this so I''m learning apprecaite any ideas or code examples.
Thanks
Jose''
推荐答案
请在下面使用此代码.
Hi,
use this code below.
<script type="text/javascript">
document.forms[''form1''].submit();
</script>
这将强制提交表格.希望这会有所帮助.
this will force submit the form. Hope this will help.
这篇关于强制使用经典ASP提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!