|
HTML::FormValidator::Constraints - Basic sets of constraints. on input profile. |
HTML::FormValidator::Constraints - Basic sets of constraints. on input profile.
In an HTML::FormValidator profile:
constraints =>
{
email => "email",
fax => "american_phone",
phone => "american_phone",
state => "state",
},
Those are the builtin constraint that can be specified by name in the input profiles.
nobody@top.domain
%?&/$()@nowhere.net
guessme@guess.m
The number is checked only for plausibility, it checks if the number could be valid for a type of card by checking the checksum and looking at the number of digits and the number of digits of the number.
This functions is only good at weeding typos and such. IT DOESN'T CHECK IF THERE IS AN ACCOUNT ASSOCIATED WITH THE NUMBER.
HTML::FormValidator(3) HTML::FormValidator::Filters(3) HTML::FormValidator::ConstraintsFactory(3)
Some of those input validation functions have been taken from MiniVend by Michael J. Heins <mike@heins.net>
The credit card checksum validation was taken from contribution by Bruce Albrecht <bruce.albrecht@seag.fingerhut.com> to the MiniVend program.
Francis J. Lacoste <francis.lacoste@iNsu.COM>
Michael J. Heins <mike@heins.net>
Bruce Albrecht <bruce.albrecht@seag.fingerhut.com>
Copyright (c) 1999 iNsu Innovations Inc. All rights reserved.
Parts Copyright 1996-1999 by Michael J. Heins <mike@heins.net> Parts Copyright 1996-1999 by Bruce Albrecht <bruce.albrecht@seag.fingerhut.com>
This program is free software; you can redistribute it and/or modify it under the terms as perl itself.
|
HTML::FormValidator::Constraints - Basic sets of constraints. on input profile. |