Handbook
Glossary
v-captcha ( str -- str )
Form validators
Prev:
v-one-word ( str -- str )
Next:
v-checkbox ( str -- ? )
Vocabulary
validators
Inputs
str
a
string
Outputs
str
a
string
Word description
Throws a validation error if the string is non-empty. This is used to create bait fields for spam-bots to fill in.
Definition
USING:
kernel
sequences
;
IN:
validators
:
v-captcha
( str -- str )
dup
empty?
[
"must remain blank"
throw
]
unless
;