View Single Post
Old 12-16-2012, 01:01 PM  
srockhard
Retired
 
srockhard's Avatar
 
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
Quote:
Originally Posted by JamesM View Post
access this link

http://j.maxmind.com/app/geoip.js

you will get something like this


Code:
function geoip_country_code() { return 'DE'; }
function geoip_country_name() { return 'Germany'; }
function geoip_city() { return 'Berlin'; }
function geoip_region() { return '16'; }
function geoip_region_name() { return 'Berlin'; }
function geoip_latitude() { return '52.5167'; }
function geoip_longitude() { return '13.4000'; }
function geoip_postal_code() { return ''; }
function geoip_area_code() { return ''; }
function geoip_metro_code() { return ''; }
you can catch every variable from above list.,

like the script i posted b4 using geoip_country_code()

you can set to any of the above.

try it.,

I really appreciate your help! Works perfectly!
__________________
Piper Pines
srockhard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote