is this what you mean?
<?php
if (isset($_POST["SimpleContact_submit_x"])) {
$WAFV_Redirect = "".(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)) ."?invalid=true";
$_SESSION['WAVT_contact_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ((isset($_POST["Name"])?$_POST["Name"]:"") . "",true,1);
$WAFV_Errors .= WAValidateEM((isset($_POST["Email"])?$_POST["Email"]:"") . "",true,2);
$WAFV_Errors .= WAValidatePN((isset($_POST["Telephone"])?$_POST["Telephone"]:"") . "",false,true,true,3);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
}
}
?>
I am using code from another site I did a little while ago and am re-using the code for this from that....that being the case, am not sure what I need to change t be in line with the current site setup...