CGI::Builder::DFVCheck

CGI::Builder::DFVCheck is a Perl module for CGI::Builder and Data::FormValidator integration.
Download

CGI::Builder::DFVCheck Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Domizio Demichelis
  • Publisher web site:
  • http://search.cpan.org/~domizio/CGI-Application-Plus-1.21/lib/CGI/Application/CheckRM.pm

CGI::Builder::DFVCheck Tags


CGI::Builder::DFVCheck Description

CGI::Builder::DFVCheck is a Perl module for CGI::Builder and Data::FormValidator integration. CGI::Builder::DFVCheck is a Perl module for CGI::Builder and Data::FormValidator integration.SYNOPSIS use CGI::Builder qw| CGI::Builder::DFVCheck |; $s->dfv_check(%form_profile) || return $s->switch_to('myOtherPage'); # if there is any error # $s->page_error is automatically set # to the $result->msgs HASH ref # $s->dfv_results is always set to the results object $results = $s->dfv_resultsCGI::Builder Example package My::WebApp ; use CGI::Builder qw| CGI::Builder::DFVCheck |; sub SH_myPage { my $s = shift ; $s->dfv_check({ required => 'email' }) || $s->switch_to('myOtherPage'); } # do something with page_error sub OH_pre_page { my $s = shift ; my $E = $s->page_error ; while ( my($field, $err) = each %$E ) { $s->page_content .= "$field field has this problem: $errn" } } Requirements: · Perl


CGI::Builder::DFVCheck Related Software