if it does not redirect to the thank you page, the either the code to send the email is not executing, a php error is occurring or the validation is failing.
To see if an error is occurring, add the following code at line 1:
<?php
errors_reporting(E_ALL);
ini_set('display_errors','on');
?>
to see if the validation is failing, change the following code:
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
to:
if ($WAFV_Errors != "") {
die($WAFV_Errors);
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
this will write a coma seperated list of numbers to the page on submit if validation is failing.
it could be that the server has disabled the $_SERVER["HTTP_REFERER"] variable which would cause the email code not to run, change the following line:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {
to:
if ($_SERVER["REQUEST_METHOD"] == "POST") {