Brethren .....

I'm preparing to move to some sort of global form input validation, and after searching this site, and cruising CPAN for a bit, I'm coming up with DATA::FormValidator and HTML::FormValidator as potential CPAN modules worth considering.

I'm curious if anyone has had experience with both, and would be even more interested in hearing from those who have and understanding of the difference between the two modules above.

One item I'd like the module to accommodate is relative flexibility in crafting the messages that go along with each form field that gets spit back during validation.

DATA::FormValidator has an INPUT PROFILE SPECIFICATION: "msg" that apparently deals with customizing error messages, but also includes this: "NOTE: This part of the interface is newer and may change. Use in production code at your own caution." .... HTML::FormValidator apparently doesn't have as robust (or any) error message customization ability.

Any insights would be appreciated ... maybe there's other approaches I should be considering? It seems rolling my own would not be the best use of time in this situation (*nix).


In reply to Form validation: preferred modules? by Hagbone

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.