Hi Bob, > I'm looking for some kind of solution that will allow me to display > localized content to visitors from various cities/states across the > U.S. I know I can perform a city/state lookup based on the IP address > of the visitor, but I also know that this method is flawed > ... > I currently have a zip code lookup engine in place on my > site, but that only works if, duh, the user enters their zip code. > > Should I attempt to guess their zip code based on their IP, and > then give them the opportunity to enter the correct zip for local > content? Looks like the best solution to me. Add to that a cookie to store that zip plus the IP on the users PC so the next visit will be even more user friendly. You know that the browser gives only one hint at the whereabouts of the user: the IP. You also know that that is not watertight. So that means the only way to be sure about the visitors location is ask about it ;-)
Guessing the zip based on IP, then asking confirmation or correction and storing in a cookie then is only going to annoy travelling laptop users using GPRS (instead of hotspots). They will appear to be on the same IP even after moving to another place (unlike laptop users using hotspots, who will be on a different IP for every new location). Marc Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
