title: how do capture drop down menu value in a form
body: <p>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:</p>
  
  <pre><code>  &lt;select name="mydrop" id="mydrop"&gt;
    &lt;option value="" selected="selected"&gt;--a--&lt;/option&gt;
      &lt;?php 
              foreach(glob(dirname(__FILE__) . '/images/*') as $filename){
              $filename = basename($filename);
              echo "&lt;option value='" . $filename . "'&gt;".$filename."&lt;/option&gt;";
          }
  ?&gt;
  
  &lt;/select&gt;
  </code></pre>
  
  <p>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?</p>
  
  <p>I use:</p>
  
  <pre><code>$first=$_POST['first'];
  $last=$_POST['last'];
  $email=$_POST['email'];
  $table=$_POST['table'];
  $image=$_GET['mydrop']; //Doesn't work
  </code></pre>