Below is my file upload code and i am wondering how i would send the user a confirmation email once they have uploaded a file. What i want is when they press submit, to get the users email from the database and send them a email confirming they have uploaded a file
[php]<?php
$name = $_FILES[“myfile”][“name”];
$type = $_FILES[“myfile”][“type”];
$size = $_FILES[“myfile”][“size”];
$temp = $_FILES[“myfile”][“tmp_name”];
$error = $_FILES[“myfile”][“error”];
$class = $_POST[‘class’];
if($size > 1000000)
{
die(“The file is too big!”);
}
else {
if (!move_uploaded_file($temp,$class."/".$n… {
die(‘file not uploaded’);
}
}
header(“location: uploadcomplete.html”);
?>[/php]