README.md
December 4, 2022 ยท View on GitHub
Description
To gather all server variables, and display them nicely in a readable format.
More Info
Create a page where you want all the server variable information to display.
Nothing, just copy and paste.
This code returns all the server variable information and displays them with alternating row color.
None that I am aware of.
| Submitted On | |
| By | Matt Khoury |
| Level | Intermediate |
| User Rating | 4.5 (27 globes from 6 users) |
| Compatibility | ASP (Active Server Pages), HTML, VbScript (browser/client side) |
Category |ASP Server Object Model World |ASP / VbScript Archive File |
API Declarations
Just include my name, and information where you use this code.
Source Code
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="0">
<%
'--Created by: Matthew J. Khoury
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>