Thanks Jason.
There are two cases that I need to cover in the validation:
1. result is not getting a value so I need to validate agains an empty recordset
2. result gets a value so I need the validate against -1,0 range
I guess I need a "OR" between the two validations. Is this possible? Here are the two validations:
<?php
if (isset($_POST["InfraparkReservation_submit"]) || isset($_POST["InfraparkReservation_submit_x"])) {
$WAFV_Redirect = "res_formular1.php?ERROR=6";
$_SESSION['WAVT_resformular2_310_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM($row_rsReservationenCheck['resultat'] . "",-1,0,"",",.",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"resformular2_310");
}
}
?>
<?php
if (isset($_POST["InfraparkReservation_submit"]) || isset($_POST["InfraparkReservation_submit_x"])) {
$WAFV_Redirect = "res_formular1.php?ERROR=6";
$_SESSION['WAVT_resformular2_956_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateNM($totalRows_rsReservationenCheck . "",-1,0,"",",.",true,2);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"resformular2_956");
}
}
?>