<%
if request("Submit") = "提交" then
Response.write(Request("aaa"))
end if
%>
<form id="form1" name="form1" method="post" action="1.asp">
<p>
<input type="text" name="aaa" id="aaa" />
</p>
<p>
<input type="text" name="aaa" id="bbb"/>
</p>
<p>
<input type="submit" name="Submit" value="提交" />
</p>
</form>
输出结果为123, abc ,
其中name="aaa"才是request.form["aaa"]中的key,
value输出为用,号连接起来的字符串。可以用split起数组。
其本质为数组,如果Request("aaa")(1)且输出为123.
login前
http://www.yocity.cn/hotel/hotel_info.aspx?hotelid=qhdh&member_id=cnto
login(自加再加一次roomid=36971&price_type=1, 不知道aspx的forms验证会自动修改Url,都做了些什么,得用reflect看看才行)
http://www.yocity.cn/login.aspx?ReturnUrl=%2fhotel%2fsecret%2fhotel_order_1.aspx%3froomid%3d36971%26price_type%3d1&roomid=36971&price_type=1
login
http://www.yocity.cn/hotel/secret/hotel_order_1.aspx?roomid=36971&price_type=1
对于asp.net而言,得用Server.UrlEnocde()编码才是正道