asp小问题。循环提交

来源:百度知道 编辑:UC知道 时间:2024/06/05 16:08:31
JavaScript或者asp都可以。

在页面上 用文本框取得数值 a ,b
a和b是两个数.

然后把固定的表单form1提交到 www.xyz.com/asp?id= id后面就是a,b范围的数。

比如a=10,b=15,那么就把表单分别提交到
www.xyz.com/asp?id=10
www.xyz.com/asp?id=11
www.xyz.com/asp?id=12
www.xyz.com/asp?id=13
www.xyz.com/asp?id=14
www.xyz.com/asp?id=15
随便用什么方法,只要能简单的实现就可以了。~~~

循环提交是可以的,问题是直接用循环提交。页面上加是iframe,提交目标设置为iframe就可以防止表单提交后刷新页面了。这样提交是不是有效,就要你试一下了。代码如下:
====================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>循环提交</title>
</head>
<script type="text/javascript">
function ok(){
var sURL="http://www.xyz.com/asp?id=";
var a=document.forms[0].txtA.value;
v