CGI::Application::Plugin::ValidateRM 2.1 review
DownloadCGI::Application::Plugin::ValidateRM is a Perl module to help validate CGI::Application run modes using Data::FormValidator. SYNOP
|
|
CGI::Application::Plugin::ValidateRM is a Perl module to help validate CGI::Application run modes using Data::FormValidator.
SYNOPSIS
use CGI::Application::Plugin::ValidateRM;
my $results = $self->check_rm('form_display','_form_profile') || return $self->check_rm_error_page;
# Optionally, you can pass additional options to HTML::FillInForm->fill()
my $results = $self->check_rm('form_display','_form_profile', { fill_password => 0 })
|| return $self->check_rm_error_page;
CGI::Application::Plugin::ValidateRM helps to validate web forms when using the CGI::Application framework and the Data::FormValidator module.
check_rm()
Validates a form displayed in a run mode with a Data::FormValidator profile, returning the results and possibly an a version of the form page with errors marked on the page.
In scalar context, it returns simply the Data::FormValidator::Results object which conveniently evaluates to false in a boolean context if there were any missing or invalide fields. This is the recommended calling convention.
Requirements:
Perl
CGI::Application::Plugin::ValidateRM 2.1 keywords