Cgi::validop::check module to validate a checkbox control.
Fails unless value equals \*(L"on\*(R" (or \*(L"on,\*(R" since it's case-insensitive). Using this check requires the checkbox to be checked; if the checkbox is unchecked an error will be created.
Returns 1 if the checkbox was checked (i.e. is \*(L"on\*(R"); 0 if it was not; an error if it reeives any other data.
Randall Hansen <[email protected]>
Copyright (c) 2003-2005 Randall Hansen. All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html