Vintage page containing DigitalFilePro upload block want make sure correct
My page contains this block of code -
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit2"]) ){
WA_DFP_UploadFile("WA_UploadResult1", "fileField", "", "uploads/", "[FileName]", "2", "[FileName]_[Increment]", "0", "false", "0", "0");
$To='claims@starhealthcarenet.com';
//$To='msummers@great-web-sights.com';
$Subject='Star Healthcare Claim Submitted';
$From='website@starhealthcarenet.com';
$mailHeaders = 'MIME-Version: 1.0' . "\r\n";
$mailHeaders.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$mailHeaders.= 'Content-Transfer-Encoding: quoted-printable' . "\r\n";
$mailHeaders.="From:\"Claims at StarHealthcare Network<website@starhealthcarenet.com>\"\r\n";
//$mailHeaders.="BCC:msummers@great-web-sights.com\r\n";
$Message="<body><p>A new Claim has been submitted and can be found here:</p><br>";
$Message.='<p style="color:red;"><a href="http://www.starhealthcarenet.com/uploads/'.rawurlencode($_SESSION['s_claims_fileField']).'">Click to fetch file</a>'."<br></p>";
$Message.="<p>Thank you!</p><p>The Management</p></body></html>";
mail($To,$Subject,$Message,$mailHeaders) or die("Email could not be sent");
$mailSent=1;
}
?>
But I'm not getting any upload happening. I'm certain that this worked at one time. Can you help me get it going, please?