Hello. I made a form which uploads a file by sending it to uploader.php
uploader.php:
<?php
// Where the file is going to be placed
$target_path = "images/";
/ Add the original filename to our target path.
Result is "uploads/filename.extension" /
$target_path = $target_path . basename( $FILES['uploadedfile']['name']);
$FILES['uploadedfile']['tmp_name'];
$target_path = "images/";
$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";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
How can i make it forward to a page after completed? The redirect scripts didn't work for me. Refresh page worked but only with a preset interval. I want it to forward after it is done uploading only.
Thanks, Peter