A2xA Posted January 26, 2008 Share Posted January 26, 2008 I need to know how to make an option on a drop-down form non-choosable. Sort of just to be there to either space it or to be a menu option. Example: I wan't Wii Games (non choosable) game..etc Nintendo DS Games (non choosable) so on.. here's my form code right now. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <div style="text-align: left;"><img style="width: 656px; height: 125px;" alt="" src="http://i27.tinypic.com/2n24pag.png"><br> <br> </div> <br> <form action="insert.php" method="post"> <SELECT NAME="game" SIZE="1"> <OPTION SELECTED>Wii Games <OPTION>Medal of Honor 2 <OPTION>Super Mario Strikers <OPTION>Super Smash Bros. Brawl (Soon) <OPTION>DS Games <OPTION>Mario Kart DS <OPTION>Metroid Prime Hunters </SELECT> Friend Code<input name="fc" type="text"> Comments <input name="comments" type="text"> <input type="submit"> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/ Share on other sites More sharing options...
revraz Posted January 26, 2008 Share Posted January 26, 2008 This is a HTML question, not PHP. But use DISABLED Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/#findComment-449895 Share on other sites More sharing options...
A2xA Posted January 26, 2008 Author Share Posted January 26, 2008 Oh, I'm sorry. I forgot :-X Thanks for the help! Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/#findComment-449898 Share on other sites More sharing options...
A2xA Posted January 26, 2008 Author Share Posted January 26, 2008 it didn't work? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <div style="text-align: left;"><img style="width: 656px; height: 125px;" alt="" src="http://i27.tinypic.com/2n24pag.png"><br> <br> </div> <br> <form action="insert.php" method="post"> <SELECT NAME="game" SIZE="1"> <DISABLED SELECTED>Select a Game! <DISABLED>Wii Games <OPTION>Medal of Honor 2 <OPTION>Super Mario Strikers <OPTION>Super Smash Bros. Brawl (Soon) <DISABLED>DS Games <OPTION>Mario Kart DS <OPTION>Metroid Prime Hunters </SELECT> Friend Code<input name="fc" type="text"> Comments <input name="comments" type="text"> <input type="submit"> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/#findComment-449904 Share on other sites More sharing options...
revraz Posted January 26, 2008 Share Posted January 26, 2008 OPTION DISABLED Still need to use the OPTION tag. Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/#findComment-449907 Share on other sites More sharing options...
A2xA Posted January 26, 2008 Author Share Posted January 26, 2008 ah okay Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/87933-solved-making-an-option-on-a-form-non-choosable-easy/#findComment-449914 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.