Thanks for the response Dragon - sorry about cross post.
I get the you cannot call a fuction;
My goal was to just allow a users to browse out - select a file - upload it - and then get a confirmation that is DID / DIDNOT upload.
But since I had to call out to that seperate .php I couldn't achieve the status on the initial .php page. Attached is both files - kept very simple, and any suggestions would be appreciated. I have only been learning PHP for a couple of weeks so I don't realize what is even a 'stupid' question at this point.
PHP FILE <uploadForm.php>:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>uploadForm</title>
</head>
<body>
<form enctype="multipart/form-data" action="uploadCSV.php" method="POST">
Please choose a file: <input name="uploaded" type="file" /><br />
<input type="submit" value="Upload" />
</form>
</body>
</html>
PHP FILE <uploadCSV.php>:
<?php
$target = "CSVupload.txt";
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) {
echo "The file ". $target ." has been uploaded";
echo "<br/> $target";
}
else { echo "Sorry, there was a problem uploading your file.";
}
header("Location: uploadForm.php");
?>