Forums
This topic is locked
Browser info via ASP?
Replies
Replied 08 Sep 2003 14:10:37
08 Sep 2003 14:10:37 Vince Baker replied:
<%
Dim strLang
strLang = Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"
%>
This will set a variable 'strLang' with the language of the browser of the user.
To view all available server info use the following and then run the page and pick the variables you want to use.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
</head>
<body>
<% Response.write(Request.ServerVariables("ALL_HTTP") %>
</body>
</html>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Edited by - bakerv on 08 Sep 2003 14:11:23
Dim strLang
strLang = Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"
%>
This will set a variable 'strLang' with the language of the browser of the user.
To view all available server info use the following and then run the page and pick the variables you want to use.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
</head>
<body>
<% Response.write(Request.ServerVariables("ALL_HTTP") %>
</body>
</html>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Edited by - bakerv on 08 Sep 2003 14:11:23