万能分线器驱动下载:ASP的问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 05:12:35
<FORM ACTION="order.asp">
<input name="fruit" type=checkbox value="苹果">苹果
<Br>
<input name="fruit" type=checkbox value="香蕉">香蕉
<Br>
<input name="fruit" type=checkbox value="菠萝">菠萝
<Br>
<input name="fruit" type=checkbox value="桔子">桔子
<input type=submit value="订购">
</FORM>
<%
for each fruit in Request.QueryString("fruit")
%>
请问后面的asp语句是什么意思???

你新建个ASP页面,然后输入:

<%
for each fruit in Request.QueryString("fruit")

response.write(fruit + "<br>")

next
%>

然后保存并上传到服务器里,然后输入下面地址:

http://你的服务器地址/你新建立的网页.asp?fruit=苹果&fruit=葡萄&fruit=黄瓜

自己看看显示的结果就明白了

引用楼上的方法。弄的下面的页面,你自己测试一下/。
另外如果提交的页面是SQL语句的话。
就没有必要加段话
<FORM ACTION="">
<input name="fruit" type=checkbox value="苹果">苹果
<Br>
<input name="fruit" type=checkbox value="香蕉">香蕉
<Br>
<input name="fruit" type=checkbox value="菠萝">菠萝
<Br>
<input name="fruit" type=checkbox value="桔子">桔子
<input type=submit value="订购">
</FORM>
<%
for each fruit in Request.QueryString("fruit")

response.write(fruit + "<br>")

next
%>