CGI Paramater Validation CPAN Modules 20 of 32 : [PREV] [NEXT]

CGI::Validate

So we can

  • require a parameter be mandatory
  • specify a parameter to be optional, with a default value
  • do constraint checking; builtins, array (for multi-selects)
  • do extended constraint checking; regexs, sub (AddExtensions)

and returns

  • CGI object, to extract valid parameters later
  • sets arrays for error handling
    • %Missing
    • %Invalid
    • %InvalidType
    • %Blank

Again a lot of work for little return. Still have to extract the values for each parameter from CGI, even if they have been validated.


© 2003 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/