We help IT Professionals succeed at work.
Get Started

enter zipcode and display city dropdown and state pulling from mysql using php and AJAX

brad0525
brad0525 asked
on
634 Views
Last Modified: 2013-12-12
Hello I have a database that has all the zipcodes in the us. The problem I am having is that I have a script that returns the city and state when the zip code is entered but I need a drop down menu for the city so the user and select from which city they are in based on their zip code. I need this to use ajax so the page doesnt have to refresh...If you have a sample code that would be great as I can modify it for my needs..thanks
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE