scrubbicus Posted March 7, 2009 Share Posted March 7, 2009 So I need to create a form that enables someone to search by zip code for the closest local representative. How might I go about doing this? This involves a lot come to think of it, has to calculate distance and each representative. Would I have to go about individually entering locations and using if statements with a database or is there a much easier way? Link to comment https://forums.phpfreaks.com/topic/148335-zip-code-searching/ Share on other sites More sharing options...
Philip Posted March 7, 2009 Share Posted March 7, 2009 Google is your friend, first one off the list: http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html Link to comment https://forums.phpfreaks.com/topic/148335-zip-code-searching/#findComment-778763 Share on other sites More sharing options...
scrubbicus Posted March 10, 2009 Author Share Posted March 10, 2009 Wow that's awesome. So this script finds the distance between zip codes. Now I'll need to get the zip codes that every representative person resides and then create something where the user types in there zip code then it finds through distance the closest zip code that has a representative. A challenge for me then, thanks! Link to comment https://forums.phpfreaks.com/topic/148335-zip-code-searching/#findComment-780983 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.