The Count keyword
Each querystring item has a Count which indicates
how many of values for this item exist. Unlike variables, if we assign
a name to some value more than once, the result is added on, not
replaced. We can access each of the values using an index.
For example, loop through all of the values of Location
and print out their values.
<% For Index=1 to request.Querysting("location").Count
=Request.QueryString("Location")(index)
next index%>
or using For Each Control structure
<% For each key in Request.QueryString("location")
=key
next index%>
|