Jump to content

an issue with the drop down


swathin2

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/157337-an-issue-with-the-drop-down/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.