I'm newbie of php and html and I've a problem. I have this form to upload a file :
<h2>Upload file</h2>
<form name="uploadFile" action = "upload.php" method = "POST" enctype = "multipart/form-data">
<input type = "file" name = "document"/>
<input type = "submit"/>
In my external upload.php file if the upload is successful I echo a string with the name of the file and a message. If I show the value with the echo function the value is right, but I don't want a redirect to upload.php page, I want to show it back in HTML.
How can I print the return value of my upload.php file in HTML form page?
if(isset($_POST['document']))