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 >
<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 4,502
Downloads 1,380
CodeID
DB ID