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 Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/169483-chained-drop-down-box/#findComment-894266 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.