The problem is code order.
The code for the server validaiton is at line 122 -137:
<?php
if (isset($_POST["Tag_submit"]) || isset($_POST["Tag_submit_x"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_index_902_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["SelectTag"]))?$_POST["SelectTag"]:"") . "",false,1);
$WAFV_Errors .= WAValidateNM($row_rsDuplicate['usrtags_type'] . "",-1,0,"",",.",true,2);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index_902");
}
}
?>
this is after the code to insert the record which begins at line 84. Move the validation code to line 84 so the validation can take place before the record is inserted.