Depends on where you want to check. I would put it into the sub validate_record in db.cgi. That way, this is checked whenever a record is added or modified.
There you see a line starting with if ($#input_err+1 > 0) { ....
Add the code before this line:
if ($in{'fieldname'} =~ /\s/) { push (@input_err, "ERROR: <b>fieldname</b> must not contain whitespace");}
kellner
There you see a line starting with if ($#input_err+1 > 0) { ....
Add the code before this line:
if ($in{'fieldname'} =~ /\s/) { push (@input_err, "ERROR: <b>fieldname</b> must not contain whitespace");}
kellner