jasonc Posted March 19, 2008 Share Posted March 19, 2008 i am wanting to have more options show when an option from the drop down box is selected. also i will be adding more options to the drop down box that will in turn open up another selection of options depending on the option in the drop down box selected. how can i do this? thank in advance for your help. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form" method="post" action=""> <select name="reason"> <option value="General">General</option> <option value="Found error on site">Found error on site</option> </select> <!-- only if an option above is selected then the following is shown --> <br> 1<input name="cb1" type="checkbox" value="1"> <br> 2<input name="cb2" type="checkbox" value="2"> <br> 3<input name="cb3" type="checkbox" value="3"> <br> 4<input name="cb4" type="checkbox" value="4"> <!-- end of hidden options --> <br><br> <input type="submit" name="Submit" value="Submit"> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/96963-select-drop-down-from-form-opens-up-new-options-to-choose-from/ Share on other sites More sharing options...
Yamaha32088 Posted March 19, 2008 Share Posted March 19, 2008 Try this I think this is what you are wanting. http://www.plus2net.com/php_tutorial/php_drop_down_list.php Quote Link to comment https://forums.phpfreaks.com/topic/96963-select-drop-down-from-form-opens-up-new-options-to-choose-from/#findComment-496281 Share on other sites More sharing options...
jasonc Posted March 19, 2008 Author Share Posted March 19, 2008 yes but no but close thanks for your help what i wanted to have is if they select one of the option is opens up a bank of radio buttons (which were previously hidden) instead of another option tab Quote Link to comment https://forums.phpfreaks.com/topic/96963-select-drop-down-from-form-opens-up-new-options-to-choose-from/#findComment-496294 Share on other sites More sharing options...
Yamaha32088 Posted March 20, 2008 Share Posted March 20, 2008 I would post in the Java script area because I think thats what you will need to accomplish that maybe someone will know of a tutorial. Sorry I'm not much help Quote Link to comment https://forums.phpfreaks.com/topic/96963-select-drop-down-from-form-opens-up-new-options-to-choose-from/#findComment-496454 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.