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 !!

Reply via email to