"Rename file" under "Upload"
Har følgene kode, og vil gi' filen som bliver upload følgene navn """( $filename = "$uge"; )""" som kommer fra foregående form.<?
$filename = "$uge";
// Where the file is going to be placed
$target_path = "billed/mave/";
// Fil 2
$target_path = $target_path . basename( $_FILES['uploadedfile2']['name']);
if(move_uploaded_file($_FILES['uploadedfile2']['tmp_name'], $target_path)) {
echo "<br>The 2. file ". basename( $_FILES['uploadedfile2']['name']).
" has been uploaded";
} else{
echo "<br>There was an error uploading the file, please try again!";
}
?>
