On Fri, 1 Mar 2002, John Lawton wrote:
> While this may be peripheral to CGI::Application, I'd like to get some
> feedback on what others are using for form validation. I am particularly
> interested in documented (tested) packages, as opposed to homegrown, ad
> hoc solutions. (With all due respect to the hackers out there)
>
> I have taken a look at Data::FormValidator. This module makes it
> possible to describe the required/optional parameters, dependencies,
> filters, and constraints in a separate file (metafile). I like the
> approach this module takes, from my experience as a programmer, it seems
> like this module is comprehensive. However, I am still wondering if
> CGI::Application people are using any other interesting modules for this
> purpose?
I also use D:FV, but then again, I'm also the module maintainer. :) One
annoyance I have with it lately is that it doesn't validate that the
syntax of your profile is acceptable, the way HTML::Template does for
your tmpl_ tokens. For example, if you mean to type "constraints" but
type "contraints" instead, your constraints will fail silently. On my
TOD DO list is to add a lot of checks of this variety so you might get a
message back like "ERROR: unrecognized parameter name: 'contraints'".
This wouldn't involve in API changes, just better internal validation.
-mark
http://mark.stosberg.com/
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]