title: Populating a dropdown box with image names
body: <p>I'm trying to get my select dropdown box to populate with the name of the images in my directory. Currently, using the following, it is populating the correct number of items, but not displaying the name. Php is not my forte, so any tips would be greatly appreciated.</p>
  
  <pre><code>&lt;?php 
  $dir = '/public_html/bioImages'
  $directory = scandir($dir);
  for each $directory as $filename){ 
  ?&gt;
  &lt;option value="&lt;?php echo $filename;?&gt;"&gt; &lt;?php echo $filename;?&gt; &lt;/option&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>