So sieht das move_upload_file aus: Code: move_uploaded_file($_FILES['file']['tmp_name'],$verz.'/'.$_POST['dirauswahl'].'/'.$_FILES['file']['name']) und das ist das Formular: Code: echo"Waehle ein Verzeichnis aus und lade das Bild Hoch.<br><br>"; echo"<form enctype='multipart/form-data' action='admin_index.php?acp=picadd' method='post'>"; $verz=opendir("galerie"); while ($file=readdir($verz)) { if ($file!="."&&$file!="..") { echo"<input type='radio' id='admin_radio' name='dirauswahl' value='".$file."'> ".$file."<br>"; } } closedir($verz); echo"<br><br>Datei: <input type='file' id='admin_file' name='file' size='50'> <input id='admin_button' type='submit' name='upload' value='Uploaden'> </form>"; edit: gibt es vlt auch eine andere moeglichkeit einen Galerie mit Kategorien zumachen ohne MySQL?
move_uploaded_file($_FILES['file']['tmp_name'],$verz.'/'.$_POST['dirauswahl'].'/'.$_FILES['file']['name'])
echo"Waehle ein Verzeichnis aus und lade das Bild Hoch.<br><br>"; echo"<form enctype='multipart/form-data' action='admin_index.php?acp=picadd' method='post'>"; $verz=opendir("galerie"); while ($file=readdir($verz)) { if ($file!="."&&$file!="..") { echo"<input type='radio' id='admin_radio' name='dirauswahl' value='".$file."'> ".$file."<br>"; } } closedir($verz); echo"<br><br>Datei: <input type='file' id='admin_file' name='file' size='50'> <input id='admin_button' type='submit' name='upload' value='Uploaden'> </form>";
Geändert von Blakkeight (13.05.2006 um 16:49 Uhr)
Foren-Regeln