aebstract Posted May 28, 2010 Share Posted May 28, 2010 I'm not sure I 100% need ajax. I've never used ajax and have no clue where to really start. Basically, I have a dropdown that is generated based on folders in a specific directory. If I add an additional folder it'll be included in the dropdown. Easy enough <p><select name=\"category\">\n<option>Choose a Category:</option>\n"; foreach ($categories as $value) { if ($_GET['class'] == $value) { $content .= "<option selected value=\"$value\">$value</option>\n"; } else { $content .= "<option value=\"$value\">$value</option>\n"; } } $content .= "</select>\n</p> I want it so that when you select one of the options, it creates another dropdown right below it. There will be folders inside the folder chosen in the first dropdown, and that's what I need generated in the second one. I'm thinking this should be very easy to do, I just have absolutely no clue at all how to approach it. Quote Link to comment Share on other sites More sharing options...
ScotDiddle Posted May 28, 2010 Share Posted May 28, 2010 aebstract, http://www.dynamicdrive.com/dynamicindex1/chainedmenu/index.htm may be just the ticket. Scot L. Diddle, Richmond VA 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.