Forum Moderators: mack

Message Too Old, No Replies

Test for AOL user?

         

Jon_King

4:09 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a situation where I would like to test for an AOL user on a page with a generic info form. And then send an indication with the form that it was submitted by an AOL user. How does one accomplish this?

GaryK

4:13 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What server?

If IIS then use browscap.ini which includes detection for AOL.

If you need an up to date browscap.ini visit the website in my profile.

Jon_King

4:24 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes it is IIS. But I don't understand the implementation of the file you speak of.

GaryK

4:30 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's the basic ASP/VBscript you need to recognize an AOL client:

<%
Dim bc
Dim ClientIsAOL
Set bc = Server.CreateObject("MSWC.BrowserType")
ClientIsAOL = (bc.AOL = true)
Set bc = Nothing
%>

Jon_King

4:42 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Excellent. Thank you very much.

GaryK

4:53 am on Jan 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're welcome. If you need anything else just ask. And make sure you have an up-to-date browscap.ini.