修改:
dim str
if isarray( request.form( "item_1 ") ) = true then '如果过了100K,那么就会转为数组
dim nCount
For nCount = 1 To Request.Form( "item_1 ").Count
str = str & Request.Form( "item_1 ")(nCount)
Next
else '100K以内
str = request.form( "item_1 ")
end if
str就是最后的输入框item_1的内容
微软对request.form是这样解释的:
You can use an iterator to loop through all the data values in a form request. For example, if a user filled out a form by specifying two values, Chocolate and Butterscotch, for the FavoriteFlavor parameter, you could retrieve those values by using the following script.
The same output can be generated with a For...Next loop, as shown in the following script.
<%
For i = 1 To Request.Form( "FavoriteFlavor ").Count
Response.Write Request.Form( "FavoriteFlavor ")(i) & " <BR> "
Next
%>
|