Kod:
<select name="stu_photo" class="select">
<option>Resim seçiniz</option>
<?
if($dir = <span class="userTag">@opendir("</span>d:/wwwroot/t-diagno/images/photos")){
while (($file = readdir($dir)) !== false){
if($file != ".." && $file != "."){
$filelist[] = $file;
}
}
closedir($dir);
}
asort($filelist);
while (list ($key, $val) = each ($filelist)){
echo = "<option value=\"" . $val . "\">" . $val . "</option>";
}
?>
</select>
Editör Notu: Dızını degıstırmek ıcın koddakı "d:/wwwroot/t-diagno/images/photos" ıfadesını duzenleyebılırsınız.