Miscellany
public text v1 · immutableOk i have this code
<?php
$folder = $_POST['folder'];
$file = $_POST['file'];
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
?>
I want to change it so instead of saved the files to the folder "files" it saves it to $folder
so it would be kinda like "./".$folder."/" i think......
and then i want it to save the file has $file and not as the old name