swathin2 Posted May 8, 2009 Share Posted May 8, 2009 hello everybody, i am trying to learn php on my own and i have an issue with the drop down box in php. i would like to use 3 drop down boxes one for the state, second for the district and the third for the pincode. when the page loads for the first time then only one drop down should be present and when the user selects any state then one more should appear automatically with the list of districts in that state and when the user selects the district then one more drop down should appear with the different pincodes available for that district. like this it should be done automatically and should be visible only one after the other and the values should remain same in the drop down boxes. if you do not understand this then you can imagine the selection of the category and sub category in any forum or journals. so can any one guide me the process how can that be done. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted May 8, 2009 Share Posted May 8, 2009 If you want this to happen without a page reload, you should take a look into AJAX. You might like to check out this FAQ/Tutotrial : http://www.phpfreaks.com/forums/index.php/topic,155984.0.html The first post gives an example without a database, the second with. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.