The stupid question is the question not asked | |
PerlMonks |
Re^3: Multiple constraints for Data::FormValidatorby matthewb (Curate) |
on Jul 29, 2004 at 11:55 UTC ( [id://378349]=note: print w/replies, xml ) | Need Help?? |
I had a similar problem yesterday (and found this thread while doing a bit of research) but found an alternative solution in the module docs and thought I'd write it up here for the next time someone searches. From the docs: Multiple constraints can be applied to a single field by defining the value of the constraint to be an array reference. I needed to (sort of) check the validity of an email address and make sure that the address' owner was not already registered. To complicate matters a bit further, I needed to check that the entry in a field to confirm the email address matched. Here's an abridged version of the form profile I used. It presupposes the existence of a Class::DBI derived package that knows about users:
HTH someone,
MB
In Section
Seekers of Perl Wisdom
|
|