RE: [PHP] dropdown Newbie question

From: Date: Thu, 05 Sep 2002 14:13:14 +0000
Subject: RE: [PHP] dropdown Newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115314@lists.php.net to get a copy of this message
[snip] Well, this is my original Code: // Theme echo ' <form name="theme" action="options.php" target="right" class="menu" METHOD="POST"> &nbsp;&nbsp;<select name="theme">'; for($i=0;$i<sizeof($theme_name);$i++) { echo "<option value='".$i."'>".$theme_name[$i]."</option>\n"; } echo '</select>&nbsp;&nbsp;<input type=submit name=get value=select>'; $var_from_dropdown = $_POST['theme']; exec("echo $var_from_dropdown > /tmp/varfromdropdown"); The file /tmp/varfromdropdown is still emty. (the dropdown field is NOT emty by the time i press the select button) Any other ideas? [/snip] Did you put a closing form tag? </form> Jay

« previous php.general (#115314) next »