validation redirect
In this validation, how would I structure the redirect so that the page being redirected was whatever the URI is (eg <?php echo $_SERVER['REQUEST_URI']; ?> combined with the anchor link)
<?php
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) {
$WAFV_Redirect = "country-cottages.php#contactform";
$_SESSION['WAVT_countrycottages_038_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Name"]))?$_POST["Name"]:"") . "",false,1);
$WAFV_Errors .= WAValidateEM(((isset($_POST["Email_Address"]))?$_POST["Email_Address"]:"") . "",true,2);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Telephone"]))?$_POST["Telephone"]:"") . "",false,3);
$WAFV_Errors .= WAValidateRX(((isset($_POST["emailx"]))?$_POST["emailx"]:"") . "","/^$/i",false,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"countrycottages_038");
}
}
?>
Thnaks
Jamie