php alert message upload successful <p>I have this code:</p> <pre><code>&lt;?php if (isset ($_FILES['UploadFileField'])){ $UploadName = $_FILES['UploadFileField'] ['name']; $UploadName = mt_rand (100000, 999999).$UploadName; $UploadTmp = $_FILES['UploadFileField'] ['tmp_name']; $UploadType = $_FILES['UploadFileField'] ['type']; $FileSize = $_FILES['UploadFileField'] ['size']; $UploadName = preg_replace("#[^a-z0-9.]#i", "", $UploadName); if(($FileSize &gt; 1250000)){ die ("Error - File to Big"); } if(!$UploadTmp) { die ("No File Selected"); } else { move_uploaded_file($UploadTmp, "Upload/$UploadName"); } header('Location: /index.php'); exit; } ?&gt; </code></pre> <p>This code works, but I need insert a message of successful after that is done Upload file. Thank you!</p>