Greetings fellow PHP'ers
I am trying to build a form that allows the user to choose the options from a large zipcode database that we have. What we would like to do is for the user to enter in the State, City, and Zip code based on data going to and coming back from the database.
Here is the scenario:
- User selects the State from which they are in from a form dropdown menu.
(A query from the zip code database gets done and brings up the cities and fills in the next dropdown menu dynamically)
- Then the user selects a City
(A query from the zip code database gets done and brings up the zip codes from the city entered above for the next dropdown menu dynamically)
- The user select which Zip Code they live in.
PROBLEM: I want the form dropdown menus to be generated automatically when the user selects the option from the previous menu. I know how to do the above if the users go from form to form filling out information. But in this case, it would be much simplier to just have the choices be generated dynamically. I know that I will need to do an OnChange command for the menu, but alas my Javascript Programming isn't up to par.
Does anybody know where I can find more any information about doing something like this?? I have been scouring Google for the past day and a half and haven't found what I needed.