Server Variables

This will list all server variables in a page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
 <title>Untitled</title>
</head>
<body>
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="0">
<%
Dim strSV, intRowColor
For Each strSV In Request.ServerVariables
 if intRowColor = 0 Then
  Response.Write "<TR bgcolor=""#ddddfc"">"
  intRowColor = 1
 Else
  Response.Write "<TR bgcolor=""#ffffff"">"
  intRowColor = 0
 End if
Response.Write "<TD> " & strSV & "=" & Request.ServerVariables(strSV) & "</TD></TR>"
Next
%>
</TABLE>
</body>
</html>

Views 419 Downloads 152

''

JeffSmith
26
Sessions Classic ASP
Revisions

v1.0