Currently using a form to upload files.
The form is in index.html and looks like:
<div id="submit">
<form action="upload.php" method="post" enctype="multipart/form-data">
Select XML file: <input type="file" name="file"><br><br>
<input type="submit" value="Upload">
</form>
</div><!--end submit-->
the upload.php file looks like:
<?php
move_uploaded_file ($_FILES['file'] ['tmp_name'], "uploads/{$_FILES['file'] ['name']}");
header('Location: index.html');
exit; ?>
The file uploads to the correct location however, I need a way to alert the user that the upload was successful. Can someone provide some help on this please?