|
-
Feb 6th, 2001, 04:16 AM
#1
Thread Starter
Lively Member
How do I detect the browser's Country?
Using the HTTP_USER_AGENT server variable?
I want to achieve a similar effect to the www.Altavista.com site, where they popup relevant content based on the users location.
I only *really* need to know if the browser is in North America or not.
Thanks,
benski
-
Feb 6th, 2001, 06:51 AM
#2
Fanatic Member
Use the following:
Code:
Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")
This returns en-gb for us here in England, so you should be able to parse '??-us'?
-
Feb 6th, 2001, 07:51 AM
#3
Thread Starter
Lively Member
Nice one Jerry- Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|