Linux SoftwareProgrammingLibrariesData::CGIForm 0.4

Data::CGIForm 0.4


Data::CGIForm is a Perl module with form data interface. Data::CGIForm is yet another way to parse and handle CGI form data
Developer:   Tim Wilde
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   12K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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/^([a-z0-9]+)$/,
password => {
regexp => qr/^([a-z0-9+])$/,
filter => [qw(strip_leading_ws, strip_trailing_ws)],
},
email => {
regexp => qr/^([a-z0-9@.]+)$/,
filter => &qualify_domain,
optional => 1,
errors => {
empty => 'You didn't enter an email address.',
invalid => 'Bad [% key %]: "[% value %]"',
},
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
    tags data cgiform  form data  form error  error username  this module  error string  

    Download Data::CGIForm 0.4


     http://mirrors.evolva.ro/CPAN/authors/id/T/TW/TWILDE/Data-CGIForm-0.4.tar.gz


    Authors software

    Data::CGIForm 0.4 (by Tim Wilde)
    Data::CGIForm is a Perl module with form data interface.

    Data::CGIForm is yet another way to parse and handle CGI form data


    Similar software

    Data::CGIForm 0.4 (by Tim Wilde)
    Data::CGIForm is a Perl module with form data interface.

    Data::CGIForm is yet another way to parse and handle CGI form data

    Rose::HTML::Form 0.53 (by John C. Siracusa)
    Rose::HTML::Form is a HTML form base class.

    SYNOPSIS

    package PersonForm;

    use Rose::HTML::Form;
    our @ISA = qw(Rose::HT

    eformmail 0.3 (by Berend de Boer)
    eformmail project is a stand-alone CGI program that accepts an HTML form and emails it

    Contact Form 1.3.8 (by Stephen Ostermiller)
    Contact Form is a perl script that you can run on your website that will allow others to send you email through a web interface

    ezUserManager 1.8.0 (by Sven-Ove Bjerkan)
    ezUserManager is a script that allows administration of .htpasswd files or the use of Web-based login.

    It features a signup form,

    Class::DBI::FormBuilder 0.481 (by David Baird)
    Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration.

    SYNOPSIS

    package Film;
    use stri

    CGI::Validate 2.000 (by Byron Brummer)
    CGI::Validate is an advanced CGI form parser and type validation.

    SYNOPSIS

    use CGI::Validate; # GetFormData()

    Tk Web form Buddy 0.03 (by Joe Philipps)
    Tk Web form Buddy project is a helper for Web forms.

    The Tk Web form Buddy is a Tk script that allows one easily to make a series

    CGI::Request 2.0b1 (by Martin R.J. Cleaver)
    CGI::Request is a parse client request via a CGI interface.

    SYNOPSIS

    use CGI::Request;

    # Simple interface: (

    spin_feedback 1.0.6 (by Rexursive)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags