You should really attach php pages instead of copy and pasting their contents so that I can open them in Dreamweaver.
Anyway the problem is that you are using separate server validation extensions for each field... instead you should just use one server behavior and validate all of the fields.
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "reg_error_email.php";
$_SESSION['WAVT_register_697_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateUnique("connData",$connData,$database_connData,"mycv","ID","none,none,NULL","0","email","',none,''","".(((isset($_POST["Email"]))?$_POST["Email"]:"")) ."",true,5);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_697");
}
}
?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "register.php";
$_SESSION['WAVT_register_954_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateLE(((isset($_POST["password"]))?$_POST["password"]:"") . "",((isset($_POST["password2"]))?$_POST["password2"]:"") . "",true,4);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_954");
}
}
?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "register.php";
$_SESSION['WAVT_register_022_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateAN(((isset($_POST["Phone_Mobile"]))?$_POST["Phone_Mobile"]:"") . "",false,false,true,false,"",true,2);
$WAFV_Errors .= WAValidateEL(((isset($_POST["Phone_Mobile"]))?$_POST["Phone_Mobile"]:"") . "",10,10,true,3);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_022");
}
}
?>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "register.php";
$_SESSION['WAVT_register_846_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_846");
}
}
?>
should be updated to:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$WAFV_Redirect = "register.php";
$_SESSION['WAVT_register_954_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateLE(strtolower($_SESSION['captcha_Security_Code_1']) . "",strtolower(((isset($_POST["Security_Code_1"]))?$_POST["Security_Code_1"]:"")) . "",true,1);
$WAFV_Errors .= WAValidateAN(((isset($_POST["Phone_Mobile"]))?$_POST["Phone_Mobile"]:"") . "",false,false,true,false,"",true,2);
$WAFV_Errors .= WAValidateEL(((isset($_POST["Phone_Mobile"]))?$_POST["Phone_Mobile"]:"") . "",10,10,true,3);
$WAFV_Errors .= WAValidateLE(((isset($_POST["password"]))?$_POST["password"]:"") . "",((isset($_POST["password2"]))?$_POST["password2"]:"") . "",true,4);
$WAFV_Errors .= WAValidateUnique("connData",$connData,$database_connData,"mycv","ID","none,none,NULL","0","email","',none,''","".(((isset($_POST["Email"]))?$_POST["Email"]:"")) ."",true,5);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"register_954");
}
}
?>