Hallo,
ich möchte mit einem select-Feld ein Ordner zum vorgegebenen Pfad ./doku/format/...ordner1-3/ anfügen. Irgendwo hängt es. Könnt ihr mir bitte mal helfen?
Gruß
if (isset( $_POST['submitbutton1'] ))
{
.
.
.
if (@move_uploaded_file( $_FILES['datei']['tmp_name'], "./doku/format/" . $_POST['sel1'], $DateiNameNeu ))
<form name="DateiUpload1" id="DateiUpload1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
<input type="file" name="datei" id="datei">
<select name="sel1" id="sel1">
<option selected value="">Bitte auswählen!</option>
<option value="ordner1/">hier</option>
<option value="ordner2/">da</option>
<option value="ordner3/">dort</option>
</select>
<input type="submit" name="submitbutton1" id="submitbutton1" value="Datei hochladen">
</form>