Re: Zip Codes

From: Date: Thu, 04 Nov 2004 17:41:06 +0000
Subject: Re: Zip Codes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-201200@lists.php.net to get a copy of this message
* Bb9876 <bradbrevet@ropeofsilicon.com>: > "John Nichel" <john@kegworks.com> wrote in message > news:418A6532.9020109@kegworks.com... > > bb9876 wrote: > > > Is there any way to use PHP to determine the zip code someone is > > > visiting > > > from, assuming they are all from the US? > > > > > > > Outside of asking the visitor for it, no. > > Okay, I run a movie news site and wanted to use it to make it even > quicker for users to find movie times in their area whether they were > logged in or not, but that's the way it goes. Well, you *could* have a form that displays asking for their zip code; on submission, it sets a cookie with their zip code, and this allows them to see their personalized movie times on subsequent visits. (You could even hide the zipcode form if the cookie is set) -- Matthew Weier O'Phinney | mailto:matthew@garden.org Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

« previous php.general (#201200) next »