kam
08-11-2005, 01:40 AM
I would like to collect the host information (e.g. Logon_user,...) and pass it back to the server.
But when I retreve the variable, it return BLANK.
Help
But when I retreve the variable, it return BLANK.
Help
|
||||
Request.ServerVariables Errorkam 08-11-2005, 01:40 AM I would like to collect the host information (e.g. Logon_user,...) and pass it back to the server. But when I retreve the variable, it return BLANK. Help neocool00 08-11-2005, 03:33 PM <%@ Language=VBScript %> <%Option Explicit%> <HTML> <HEAD> <title>Server Variables</title> </HEAD> <BODY> <table cellpadding="1" cellspacing="0" border="1"> <tr> <th>Item</th> <th>Value</th> </tr> <% Dim Item For Each Item In Request.ServerVariables Response.Write "<tr>" & vbcrlf Response.Write "<td>" & Item & "</td>" & vbcrlf Response.Write "<td>" & Request.ServerVariables(Item) & "</td>" & vbcrlf Response.Write "</tr>" & vbcrlf Next %> </table> </BODY> </HTML> Run this on the server you are coding on and you'll get all of the server variables back plus which ones to use. If you are trying to obtain a user's id, you will need to turn annonymous access off, otherwise it will return blank. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum