Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

dear monks,

i'm trying to find a suitable module for generating/processing HTML forms in a mod_perl/HTML::Mason environment, and i found a lot...so much in fact that i'm stuck... heeelllppp :-}

here's a list of some modules i've found on CPAN, actually i only tried CGI::FormBuilder and HTML::FormEngine.

CGI::FormBuilder seems to be the only one permitting automatic generation of javascript code for validation of user input, but i didn't manage to make it work in HTML::Mason :-{

HTML::FormEngine seems pretty neat but i didn't test it intensively,

so if someone has good/bad experience with one|some of this modules, or any advice at all, it will be greatly appreciated.

thanks by advance,

CGI::Form
CGI::FormMagick
CGI::FormBuilder
CGI::QuickForm
HTML::FormTemplate
HTML::FillnForm
HTML::FormEngine
WWW::Form

Petruchio Edit: Sat Aug 30 07:02:36 UTC 2003 - changed unclosed left bracket to forward slash, to correct markup breakage

Replies are listed 'Best First'.
Re: HTML form generation and processing
by liz (Monsignor) on Aug 29, 2003 at 22:31 UTC
    I have no personal experience with any of these modules. But there is a review for HTML::FillInForm here at the Monastery.

    Hope this helps.

    Liz

      HTML::FillInForm works very well with HTML::Template, I use both. I prefer not to rely on Javascript validation (If I validate in JS I then re-validate in Perl) the forms are far too easily 'spoofed' and a client about 4 years back lost money on a JS validation. So beware of that.

      In fact, something like 20% of the form submissions I get are spoofed!

      This makes HTML::FillInForm and HTML::Template my tools of choice for this sort of thing. My preference is to separate the design and processing so although Mason seems like a nice thing I will not use it at all - YMMV!

      jdtoronto