Re: Zip Codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Bb9876 <bradbrevet@xxxxxxxxxxxxxxxxx>:
> "John Nichel" <john@xxxxxxxxxxxx> wrote in message
> news:418A6532.9020109@xxxxxxxxxxxxxxx
> > 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@xxxxxxxxxx
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux