Hi Guys!
I'm having problem with uploading the file to the server. This is my code.
$path = "Files/01 Admin Procedure/" . basename($_FILES["txtFilename"]["name"]);
$x = move_uploaded_file($_FILES['txtFilename']['tmp_name'], $path);
//Move file to directory
if ($x)
{
echo "<script>alert('File " . basename( $_FILES["txtFilename"]["name"]) . " has been uploaded!')</script>";
}
else
{
echo "<script>alert('Error Uploading File! $path')</script>";
}