I will need you to upload the code to the server so i can see the issue to troubleshoot it.
this is the correct code:
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contactform");
}
change it to:
if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"contactform");
}