Try this:

<cfset "brow" eq "#HTTP_USER_AGENT#">
<cfif  FindNoCase("Mozilla/4.7 [en]", brow) gt 0>
<cflocation url="index.cfm">
<cfelseif  FindNoCase("Mozilla/4.01 (compatible; MSIE 4.01; Windows NT)",
brow) gt 0>
</cfif>

Regards,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server
Get your free copy of iMS POST-SE Server from CoolFusion!

----- Original Message -----
From: "Richard L Smith" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 10:41 AM
Subject: Detecting HTTP_USER_AGENT


> Hello:
>
> Does any one know of a way to use HTTP_USER_AGENT to do page redirects
with
> CF?
>
> I am trying to get a template to output code based on the browser type NS
or
> MSIE so far nothing seems to work.
>
> Here's the code i am using so far
>
>
> <cfset "brow" eq "#HTTP_USER_AGENT#">
> <cfif "brow" eq "Mozilla/4.7 [en]">
> <cflocation url="index.cfm">
> <cfelseif "brow" EQ "Mozilla/4.01 (compatible; MSIE 4.01; Windows NT)">
> </cfif>
>
> Thanks
> Rick
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to