CGI::ValidOp::Check::checkbox - CGI::ValidOp::Check module to validate a checkbox control.


CGI-ValidOp documentation  | view source Contained in the CGI-ValidOp distribution.

Index


NAME

Top

CGI::ValidOp::Check::checkbox - CGI::ValidOp::Check module to validate a checkbox control.

DESCRIPTION

Top

default

Fails unless value equals "on" (or "on," since it's case-insensitive). Using this check requires the checkbox to be checked; if the checkbox is unchecked an error will be created.

boolean

Returns 1 if the checkbox was checked (i.e. is "on"); 0 if it was not; an error if it reeives any other data.

AUTHOR

Top

Randall Hansen <legless@cpan.org>

COPYRIGHT

Top


CGI-ValidOp documentation  | view source Contained in the CGI-ValidOp distribution.