Originally Posted by sunfighter
Yes. php can read file names from a folder and generate the drop down.
Your manual of dir php stuff is located here http://www.php.net/manual/en/function.scandir.php
use the menu on the left side to see all.
Rest (drop downs) should self explanatory. php wins over js here.
Basic assumption that may have been overlooked here...
Not all users have access to execute php code.
Task can be accomplished with JS if it remains enabled on your browser.