dropdown Newbie question

From: Date: Thu, 05 Sep 2002 11:10:44 +0000
Subject: dropdown Newbie question
Groups: php.general 
Request: Send a blank email to php-general+get-115285@lists.php.net to get a copy of this message
Hello! I am very new in php and i have a little dummy question ;D I have a dropdown box with a entry in it called "Coctail Blue" Now i want to put the selected string ("Coctail Blue" in this case) in to a variable when i press the button below. options.php is the page it should go after. // ..SNIP ... // Start Dropdown echo ' <form name="theme" action="options.php" target=right class=menu> &nbsp;&nbsp;<select name="theme">'; for($i=0;$i<sizeof($theme_name);$i++) { echo "<option value='".$i."'>".$theme_name[$i]."</option>\n"; } //end dropdown // Button echo '</select>&nbsp;&nbsp;<input type=submit name=get value=select>'; //doesnt work: $var_from_dropdown = theme // ..SNIP ... What did i do wrong? Thank you! Mario

« previous php.general (#115285) next »