<?php


// Where the file is going to be placed 
$target_path = "uploads/";

/* Add the original filename to our target path.  
Result is "uploads/filename.extension" */
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
/*$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); */

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
    " has been uploaded";
	 //echo "<a href="uploads/basename( $_FILES['uploadedfile']['name'].pdf">$_POST["text"]</a></html>" ;
	?>
	<html>
	<br>
	</html>
	<?php
	echo $_POST["text"];
} else{
    echo "There was an error uploading the file, please try again!";
}
?>