Store Locator Script
Comments:None yet. Be the first!
Built a nifty store locator script today using zip codes held in a database, PHP and some MySQL queries. Here is a summary of how it works and the logic behind it.
The Form:
A simple sleek looking form with some CSS applied for aesthetics.
![]()
Error Trapping:
The store locator uses several error trapping functions to prevent junk data being passed to the results page. For example, the demo form will only allow a 5 digit Maine zip code. Any other number will result in notifying the user to enter a valid zip code.

Results Page:
Once a valid zip code has been entered, the results page will then display all of your stores sorted by total miles. To help the user, the closest store will be shown first. Each store or location has latitude and longitude data held in a database, which the results page uses to calculate distance. If desired, the results page can also be converted to a Google map to help the visitor visualize your locations.
This script can be easily integrated into an existing website, if your web server can support it. Pricing depends on the scope of work (How many states covered, how many stores or locations, customizing the results page, google maps integration, etc.)
What is your website missing?









Categories:
Post Tags: 

Subscribe
Subscribe with RSS
Updates by Email
Contact Me
7%