Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
May 27, 1999

Dump the Server Variables to a Table With ASP Code

The Active Server Pages Request object gathers lots of information about the server and the browser. This information is stored in the ServerVariables collection. You can iterate through the entire collection with only a few lines of ASP code:
 
<%@ Language=VBScript %>
<HTML>
<BODY>
<table border=1>
<%For Each s In Request.ServerVariables%>
<tr><td><%=s%></td>
<td><%=Request.ServerVariables(s)%>
</td></tr>
<%Next%>
</table>
</BODY>
</HTML>
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date