Data::CGIForm

Data::CGIForm is a Perl module with form data interface.
Download

Data::CGIForm Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Wilde
  • Publisher web site:
  • http://search.cpan.org/~twilde/Data-CGIForm-0.4/CGIForm.pm

Data::CGIForm Tags


Data::CGIForm Description

Data::CGIForm is a Perl module with form data interface. Data::CGIForm is a Perl module with form data interface.Data::CGIForm is yet another way to parse and handle CGI form data. The main motivation behind this module was a simple specification based validator that could handle multiple values.You probably don't want to use this module. CGI::Validate is a much more feature complete take on getting this sort of work done. You may then ask why this is on the CPAN, I ask that of myself from time to time....SYNOPSIS my %spec = ( username => qr/^(+)$/, password => { regexp => qr/^()$/, filter => , }, email => { regexp => qr/^(+)$/, filter => &qualify_domain, optional => 1, errors => { empty => 'You didn't enter an email address.', invalid => 'Bad : ""', }, extra_test => &check_email_addr, }, email2 => { equal_to => email, errors => { unequal => 'Both email addresses must be the same.', }, }, ); my $r = $ENV{'MOD_PERL'} ? Apache::Request->instance : CGI->new; my $form = Data::CGIForm->new(datasource => $r, spec => %spec); my @params = $form->params; foreach $param (@params) { next unless my $error_string = $form->error($param); print STDERR $error_string; } if ($form->error('username')) { handle_error($form->username, $form->error('username')); } my $email = $form->param('email'); my $password = $form->password;Requirements:· Perl Requirements: · Perl


Data::CGIForm Related Software