一个关于for each next 里参数传递的神奇的问题!
请先看两段代码
'这是第一个网页 tt.asp
<form name="form1" method="post" action="ttt.asp">
<input type="radio" name="1" value="a">A <input type="radio" name="1" value="b">B
<input type="radio" name="1" value="c">C<input type="radio" name="1" value="d">D<br>
<input type="submit" value="ok">
</form>
'这是第二个网页ttt.asp
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<%
'for each name in request.form
'getname=name
'if getname="" then
'response.write"get name is kong"&"<br>"
'else
'response.write getname&"<br>"
'end if
whatget=request.form
if whatget="" then
response.write"what get is kong"&"<br>"
else
response.write whatget&"<br>"
end if
getchoice=request.form("1")
if getchoice="" then
response.write"getchoice is kong"
else
response.write getchoice
end if
'next
%>
</BODY>
</HTML>
问题是:当我在第一个网页里什么也不选,就提交时,这时我能在第二个网页里能得到参数,判断出我在第一个网页里什么也没选
但是一旦我把第二个网页的注释去掉,即放在for each next 循环里面时,当我在第一个网页里什么也不选,第二个网页就不能得到参数,也就无法判断出我在第一个网页里什么也没选了。
望达人赐教^_^