老师:您好!
我测试了一下,如果把5个输入框的名称都写成“txt_Num”是可以实现的,但我把5个输入框的名称改为:txt_Num1,txt_Num2,txt_Num3,txt_Num4,txt_Num5 就实现不了啦!!
//以下代码可以实现
================================================================
For t=0 To txtNum
Response.Write "<input type=text name=txt_Num /></br>"
可以实现
Next
================================================================
<input type=text name=txt_Num />
<input type=text name=txt_Num />
<input type=text name=txt_Num />
可以实现
<input type=text name=txt_Num />
<input type=text name=txt_Num />
================================================================
<input type=text name=txt_Num1 />
<input type=text name=txt_Num2 />
<input type=text name=txt_Num3 />
不能实现
<input type=text name=txt_Num4 />
<input type=text name=txt_Num5 />
================================================================
说明:输入框名称:txt_Num1,txt_Num2,txt_Num3,txt_Num4,txt_Num5 已确定,不能更改(也不能用FOR循环来实现输入框的输出)!!