<body bgcolor="skyblue">
    <form id="form1" runat="server">
    <%
        int loopl;
        NameValueCollection coll = Request.Form;
        string[] arr1 = coll.AllKeys;
        string[] arr2 = coll.GetValues(arr1[0]);
        Response.Write("用户名为:" + arr2[0] + "<br>");
        for (int i = 1; i < 11; i++)
        {
            arr2 = coll.GetValues(arr1[i]);
            Response.Write(i + arr2[0] + "<br>");
        }
        
    %>
    </form>
</body>
运行时显示
string[] arr2 = coll.GetValues(arr1[0]);
索引超出了数组界限