Hey,

I've been playing arond with forms for the last two years and starting to get sick of manually validating every field :). It seems as my skills grow more and more, my demands with forms are needed. I'm currently making a form that has many fields, including a upload field, e-mail, zip code, credit cards, website and telephone fields--All fields that usually need some type of validation.

I'm looking for a Module that can do this job for me. One that I came across to and interested me the most was Data::FormValidator. It seems it can do the jobs I want easily, but I'm wondering if has such as a template system? --So It cant print the error message next to the input field, ex. If input field "First Name" is empty, then when a user tries submitting the form, the error message page will display "Missing Field First Name" next to the input text box.


For those who have used any form validation modules, would you prefer this one to use for my needs? Any other better ones?

I've searched this site along with cpan, and found several, and I would say this one seems best fitting. But before I get started to learn how to use it, I just want to make sure this is the one right for me.

Thanks,
Anthony

In reply to An Easier Way to Validate Forms by perleager

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.