1. Show server variables
This script displays all the server variables in a tabled format.

width="70%" align="center">
<tr bgcolor="#FF9900">
<td width="25%">
<div align="center"><font size="2"><b><font
face="Verdana, Arial, Helvetica, sans-serif">ServerVariable</font></b></font></div>
<td width="75%">
<div align="center"><font size="2"><b><font
face="Verdana, Arial, Helvetica, sans-serif">Value</font></b></font></div>
For Each Item in Request.ServerVariables %>
<td bgcolor=#FF9900 width="25%"><font
size="1" face="Verdana, Arial, Helvetica,
sans-serif"><%= Item %></font></td>
<td width="75%"> <font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><%=Request.ServerVariables(Item)%></font></td>


The value of all the server variables are displayed in a table, by the statement Request.ServerVariables(Item). As it is in the For Each…Next loop it displayes all the values one by one.

Back to code snippet home…

    * Macronimous.com does not use information collected in this form for any marketing purposes. Check our privacy policy here.