Thursday, October 21, 2004

Looping through ASP Server Variables

Place this code in the body of your asp file and run it. It will then display all the server variables.

<%

dim obj

for each obj in Request.ServerVariables

response.write "Object Name: " & obj & "<BR>"
& "Object Value: " & Request.ServerVariables(obj) &
"<BR><BR>"

next


%>


No comments: