![]() |
|
|
Server VariablesSometimes you might want to find out more information on your visitors. We can do this using the server variables. These are environment variables that tell us about the environment that your application is running in. Server variables can tell us everything from what browser the visitor is using, to the visitor's ip address, or the last page the visitor came from. For example I can tell that you are using the CCBot/1.0 (+http://www.commoncrawl.org/bot.html) browser, and the IP (Internet Protocol) address of your internet connection is 38.103.63.60 Server Variables can be called with the following syntax; <% Request.ServerVariables("Variable Name") %> Below are a list of some of the more common server variables and how you use them: This tells us the page the visitor came from <% =Request.ServerVariables("REMOTE_ADDR")%> Your IP address is: 38.103.63.60 Find host name of client
Find out what browsers / Operating System a user has To get a list of all the ServerVariables you can simply copy paste and run this script. Here's an example of using one of the ServerVariables to create a self referencing form
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|