Second post :rolleyes:
I cannot figure out whats wrong with this code, could anyone help please? Its supposed to be a simple file upload script.
$TargetPath = "../games/";
$TargetPath = $TargetPath . basename($FILES['upload']['name']);
if (move_uploaded_file($_FILES['upload']['tmp_name'], $TargetPath)) {
echo "<p align='center'><b>The file has been uploaded</b></p>";
}else{
echo "<p align='center'><b>There was a problem uploading the file</b></p>";
}
Thanks 🙂