ok dann nochmal "sauber" geschrieben:
PHP Code:
<php
echo "<select size='1'>";
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
foreach (glob($file) as $datei_name) {
echo "<option value='" .$datei_name. "'>" .$datei_name. "</option>";
}
}
}
closedir($handle);
}
echo '</select>';
?>
Comment