I am using a piece of code within a form for a drop down list that is populated by a directory on a web site:
<select name="mydrop" id="mydrop">
<option value="" selected="selected">--a--</option>
<?php
foreach(glob(dirname(__FILE__) . '/images/*') as $filename){
$filename = basename($filename);
echo "<option value='" . $filename . "'>".$filename."</option>";
}
?>
</select>
I have two text boxes and a text area inputting. When I action my php file all of the data values are there but not from this drop down menu. Any ideas why?
I use:
$first=$_POST['first'];
$last=$_POST['last'];
$email=$_POST['email'];
$table=$_POST['table'];
$image=$_GET['mydrop']; //Doesn't work