sorry, had a single quote where a double quote was needed, the correct code is:
if ($WAFV_Errors != "") {
die($WAFV_Errors."<br><br><br><br>".var_dump($_POST)."<br><br><br><br>".var_dump($_SESSION));
PostResult($WAFV_Redirect,$WAFV_Errors,"registrationform");
}