Hi Folks,

I am having a problem with the CFX_CountryOfIP tag.  It works for the most
part, but for some reason, if someone is using IE 5.x and Windows 98 when
they access our website,  it doesn't seem to work properly.  This doesn't
make any sense to me at all.  Can anyone offer any ideas or other ways to
accomplish this.  The basic idea is that people from North and South America
stay on our US based website, everyone else is shunted off to our UK site.
The thing is that people who are using Windows 98 wind up on the UK site,
even though they are in the United States.

Here is how I am using the tag:

<CFPARAM name="countryofip" default="US">
<CFSET
list_of_countries_sent_to_US_site="US,CA,MX,SV,NI,GT,CR,EC,PE,BS,PA,CU,HT,CO
,CL,VE,AI,BO,UY,BR">
<CFSET THE_IP_ADDRESS_IN_QUESTION="#REMOTE_ADDR#">

<CFTRY>
<CFX_CountryOfIP IP="#THE_IP_ADDRESS_IN_QUESTION#">
<CFCATCH>
<!--- Do Nothing, they stay on the US website ---->
</CFCATCH>
</CFTRY>

<CFIF #CountryOfIP# GT "">

<CFIF
LISTCONTAINSnocase("#list_of_countries_sent_to_US_site#","#CountryOfIP#") is
true>
<!--- Do Nothing, they stay on the US website ---->
<CFELSE>
<CFSET OFFICE="UK Office">
<CFLOCATION url="http://www.this_site_United_kingdom.com">
</cfif>

<CFELSE>
<!--- Do Nothing, they stay on the US website ---->
</CFIF>


Thanks,

Eron

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to