Im using mysql and php, trying to make a form to let the user select state and county...

  • Thread starter Thread starter slpcc63
  • Start date Start date
S

slpcc63

Guest
...to pull info from the db? I have a database w/ info showing information about different counties in different states, i've made a dropdown that pulls the state names from the db for the user to select, now the first thing i want to do is make it to where there is a second drop down for county that populates based on what the user selects for their state, then i need to submit the state and county and return the info for that specific county
 
Look into using Ajax...it's really easy and you can do all of that without refreshing the page.

Check this out: http://www.tizag.com/ajaxTutorial/ajaxxmlhttprequest.php
 
Look into using Ajax...it's really easy and you can do all of that without refreshing the page.

Check this out: http://www.tizag.com/ajaxTutorial/ajaxxmlhttprequest.php
 
You're going to want to look into using some AJAX.

Two of the most popular libraries are MooTools and Scriptaculous. They both have a LOT of documentation and instructions, and should be able to get you what you need.

Personally, I use Scriptaculous but use whichever one makes more sense to you!
 
Back
Top