Check out Data::FormValidator. The docs might seem a bit daunting, but it should do the trick for you.
Update: As for your actual code snippet, I don't see how your $name, $email, and %emails variables are getting populated. Show us how you assign data to them and we might be able to answer your question more directly.
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Form param checking
by Ovid
in thread Form param checking
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |