Some thing like this should work ... i think
<?php
if ($handle = opendir('/path/to/files')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>
That should print out all the files in a directory
To make it into a drop down
print out
<select name="select">
before the while loop
change the echo to print
<option>$file</option>
then end with
</select>
outside the loop