I've never used this implementation, so this is just a guess. Since it is an array can't you just do
<cfset country = qname[1]> where 1 is the location in the array of the country code On Tue, Feb 9, 2010 at 1:34 PM, Jason Allen <[email protected]> wrote: > Ok, I'm working with Kevin's recommendation right now, and I almost > have it. > > Database is imported. > > When I run the script I have named 'getipcountry.cfm' I get the > Country output on screen > > Here is the script > > <cfinvoke component="geoip" method="ip2country" > returnvariable="qname"> > <cfinvokeargument name="ip" value="#CGI.remote_addr#" /> > </cfinvoke> > > If I run this, I get 'US' printed on screen > > But I want to set this output to a variable. > > So I would do <CFSET COUNTRY = "US"> > > But it appears #qname# is an array. > > How should I set this to a variable? Or better yet, how do I set > 'country' to be equal to the results of the cfc? > > -- > Open BlueDragon Public Mailing List > http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon > mailing list - http://groups.google.com/group/openbd?hl=en > > !! save a network - please trim replies before posting !! > -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon mailing list - http://groups.google.com/group/openbd?hl=en !! save a network - please trim replies before posting !!
