actually the BEST way to do it is putting
$status = &validate_record (%in);
if ($status eq "ok") {
#ADD CODE HERE..
}
else {
&html_add_failure($status);
}
that actually auto validates the record otherwise it gives you an error..
$status = &validate_record (%in);
if ($status eq "ok") {
#ADD CODE HERE..
}
else {
&html_add_failure($status);
}
that actually auto validates the record otherwise it gives you an error..