ballouta Posted August 9, 2009 Share Posted August 9, 2009 Hello Is there php code that makes TWO drop down boxes chained? For example, the first drop down contains the menu main titles, and when one of them is selected the second should show its subtitles, I've found such chaind drop down but it used javascript, althouh it is alittle bit complicated, but how do i write PHP code in .js file? I prefer pure PHP. many thanks Link to comment https://forums.phpfreaks.com/topic/169483-chained-drop-down-box/ Share on other sites More sharing options...
MadTechie Posted August 9, 2009 Share Posted August 9, 2009 Here's a basic script I wrote to help people get started Dynamic DropDown PHP/AJAX see the "TRY this by itself first.. (single file)" if you need 3+ drop downs see the 2nd post Link to comment https://forums.phpfreaks.com/topic/169483-chained-drop-down-box/#findComment-894256 Share on other sites More sharing options...
ballouta Posted August 9, 2009 Author Share Posted August 9, 2009 Thank You I will test this script Link to comment https://forums.phpfreaks.com/topic/169483-chained-drop-down-box/#findComment-894266 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.