I am curious how I would go about doing two things on a site I am thinking of creating...
First, is to have some code that detects where a user is based on their IP - I know this is not infallible, for numerous reasons, but it would be nice to have a zip code or city/state auto selected for the visitors and that is the only way I know to do it...
Second, along the same lines, is to have visitors able to search for members who are within a certain distance of them; say I want to find everyone in the same city or within 50 miles of my zip code, etc. I know this requires something more than just coding... but I don't know what/where/how to do that. I see it all over the internet, and I know not every site has manually entered a huge database of zip codes, cities, etc., and the distances from each other - so how do I go about that?
Thanks!