//If no errors registred, print the success messageif(isset($_POST['Submit']) && !$errors){ $to = "me@mydomain.com"; $subject = "File upload"; $body = "My file uploaded successfully... The link is: "; $body .= "http://mydomain.com/" .$newname; // Send the email mail($to, $subject, $body, "From: <me@mydomain.com>"); // Show message echo "<h1>File Uploaded Successfully! Try again!</h1>";}