|
Request Collection
Home :: Classic ASP :: Request Collection
Here's a simple Vb function you can use on active server pages to see what is in the Request.QueryString and Request.Form collections
for debugging your applications.
Call like this: <%WriteRequest%>
Returns this: a list of items from Request.QueryString and Request.Form
<% Sub
WriteRequest() 'write the request objects to
the page for debugging purposes Dim str, x, IntI,
flag flag = False Response.Write
"<H2>Request.Form</H2>" For Each x In Request.Form
Response.Write x & " = " & Request.Form(x)
& " ------- " & Len(Request.Form(x)) & " chrs<BR>" &
VbCrLf flag = True Next If flag = False Then Response.Write
"Request.Form object is empty." & str End If flag =
False Response.Write
"<H2>Request.QueryString</H2>" MyArray =
Split(Request.QueryString,"&") For IntI = LBound(MyArray)
To UBound(MyArray) Response.Write
The rest of this page is hidden, you must be a member to view itTo become a member and get immediate access to the course please join here Free!
Next >> Check URL/write href tag
|
|