State and Zip Code Search

Links for php scripts

Moderators: egami, macek, gesf

Post Reply
jayco
New php-forum User
New php-forum User
Posts: 4
Joined: Thu May 07, 2020 9:37 pm

Wed Aug 26, 2020 8:42 am

I am wondering if there is a script or scripts out there that can do the following that I need to add to a form

Take a state and when picked it would only show the zip codes for that state. I know there are lists out there to buy for zipcodes and I am willing to buy that but need the logic.

Any ideas or resources?
User avatar
Strider64
php-forum GURU
php-forum GURU
Posts: 420
Joined: Sat Mar 23, 2013 8:24 am
Location: Livonia, MI
Contact:

Wed Aug 26, 2020 3:26 pm

You might be able to find something that you are looking by searching for FREE APIs though ti would involve a little bit of javascript.

I did some searching myself and came across this - https://www.usps.com/business/web-tools ... elcome.htm

Though it might not be free for long. LOL
Life is a fig newton of your imagination! https://www.phototechguru.com/
jayco
New php-forum User
New php-forum User
Posts: 4
Joined: Thu May 07, 2020 9:37 pm

Wed Aug 26, 2020 4:16 pm

Thank you I appreciate the information but I am not looking to validate the address. this is just a database search so someone can search by state or zip code but I need to make sure they don't choose a state like california but does not also choose zip codes from new york.

I will keep searching but having problems will support no responding for their api's ugh.
jayco
New php-forum User
New php-forum User
Posts: 4
Joined: Thu May 07, 2020 9:37 pm

Wed Sep 02, 2020 6:17 am

I found some autocomplete ajax tutorials so I am going to try that.
Post Reply