<%@ Page Language="C#" Debug="true"%>
<%
int loop1;
//Load NameValueCollection object.
NameValueCollection coll = Request.Form;
//Get name of all keys into a string array.
String[]arr1=coll.AllKeys;
%>
你提交的调查表内容如下:
用户信息
<%
String[]
arr2 = coll.GetValues(arr1[0]);
Response.Write("用户名为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[1]);
Response.Write("第一次输入的密码为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[2]);
Response.Write("第二次输入的密码为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[3]);
Response.Write("你的真实姓名为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[4]);
Response.Write("你的电子邮箱为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[5]);
Response.Write("你的住址为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[6]);
Response.Write("你的院系为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[7]);
Response.Write("你的留言为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[8]);
Response.Write("你所在的城市为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[9]);
Response.Write("你的爱好为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[10]);
Response.Write("你的性别为:" + arr2[0] + "
");
arr2 = coll.GetValues(arr1[11]);
Response.Write("你的血型为:" + arr2[0] + "
");
%>