J
Jus10
Guest
I have a PHP upload form on my site. The php is as follows:
<?php
$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";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
When someone uploads the file it redirects them to this page and says thank you. I was wondering if there was a way to in addition to the thank you message if there was a script to automatically generate the url to their uploaded file?
Dude you=God
Thank you so much!
<?php
$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";
} else{
echo "There was an error uploading the file, please try again!";
}
?>
When someone uploads the file it redirects them to this page and says thank you. I was wondering if there was a way to in addition to the thank you message if there was a script to automatically generate the url to their uploaded file?
Dude you=God
Thank you so much!