Jump to content

Dynamic Dependent Drop Down lists


benign
 Share

Recommended Posts

Hi:How can I make a Dynamic Dependent Drop Down lists? the easiest example is country/city drop down lists.If the user chooses a country then in the next drop down all the cities(or states) or the chosen country appear. Is it possible to make it in php/mysql?Please let me know how I can make such a thing.Thanks.Benign

Link to comment
Share on other sites

I've never coded one myself before, but I believe that this will require javascript in addition to PHP coding if you want your drop-down lists to change without the user having to press submit. I imagine that if using JS was out of the question you could contain the form in an iFrame and refresh just that whenever you need to change the second drop-down options. Tutorials on creating them are fairly easy to find, you may also want to check out the Javascript forum on this site too. Hope it helps. :)

Link to comment
Share on other sites

Look at this site, they have loads of menus, dropdown menus, click menus, hover menus, and slide menus. Besides, they have lots of other things too, lol.http://www.dynamicdrive.com/dynamicindex1/For which browsers these codes are compatible with, is noticed next to the link :)[*Edit:]Oh sorry, I didn't see you were asking for in php :)

Edited by Dan The Prof
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...