<?
echo "<select size='1' name='map'>";
$dir = "plaatjes/"; // de directory die hij uit moet lezen
if ($handle = @opendir($dir))
{
while (false !== ($file = @readdir($handle))) {
if(is_dir($file)) $mappen[] = $file;
}
@closedir($handle);
}
sort($mappen);
foreach($mappen as $value){
echo "<option value='". $value ."'>". $value ."</option>";
}
echo "</select>";
?>