Gossamer Forum
Home : Products : DBMan : Customization :

Re: [jigme] Allow one word only

Quote Reply
Re: [jigme] Allow one word only In reply to
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
Subject Author Views Date
Thread Allow one word only jigme 2701 Mar 3, 2002, 7:42 PM
Thread Re: [jigme] Allow one word only
kellner 2601 Mar 4, 2002, 2:39 PM
Thread Re: [kellner] Allow one word only
Paul 2598 Mar 4, 2002, 3:01 PM
Thread Re: [RedRum] Allow one word only
kellner 2614 Mar 4, 2002, 3:34 PM
Thread Re: [kellner] Allow one word only
jigme 2609 Mar 4, 2002, 9:01 PM
Thread Re: [jigme] Allow one word only
kellner 2593 Mar 5, 2002, 1:39 AM
Thread Re: [kellner] Allow one word only
jigme 2581 Mar 5, 2002, 5:19 AM
Post Re: [jigme] Allow one word only
Paul 2568 Mar 5, 2002, 5:26 AM