[sf-perl] Favorite form validation modules?

Fred Moyer fred at redhotpenguin.com
Wed Jan 6 15:34:56 PST 2010


On Wed, Jan 6, 2010 at 3:29 PM, Michael Friedman
<friedman at highwire.stanford.edu> wrote:
> Maybe it's my lack of front-end-web-rendering experience showing, but what kind of form validation are you doing?

Either ajax based or the traditional full form post.  Validation such
as credit card numbers, phone numbers, states, zip codes, email
addresses, etc.

> My office generally designs forms so that fields either don't need validation (a list of state abbreviations instead of a text box; a Javascript date picker) or are validated by Javascript (checking email address formatting or credit card number formatting). That way the user gets immediate feedback and doesn't have to send the form to the server for validation. For things like full text search fields, we just throw the query at the full text search server and let it figure it out.
>
> I guess I don't understand why "form validation" is something you'd want a special perl module for.

Javascript validation is good, but won't validate submissions through
mechanized interfaces (which includes spammers).  Getting full browser
compatibility is something you don't have to worry about also when you
have the server side handling the form validation.

>
> -- Mike
>
> PS - We don't use Perl for HTML generation, since everything we do is heavily customized and hand-tweaked.
> ______________________________________________________________________________
> Mike Friedman | HighWire Press, Stanford Univ | friedman at highwire.stanford.edu
>
> On Jan 6, 2010, at 11:54 AM, Fred Moyer wrote:
>
>> I've been using Data::FormValidator for a few years now and think it
>> is the best thing since sliced bread (not that I don't like slicing my
>> own bread that is).
>>
>> It is nice because it's simple, comes with a number of existing
>> constraints, and also is easy to integrate with existing systems.
>>
>> I'm interested in hearing what others are using for form validation.
>> _______________________________________________
>> SanFrancisco-pm mailing list
>> SanFrancisco-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
>


More information about the SanFrancisco-pm mailing list