HTML::FormEngine

HTML::FormEngine is a Perl module to create, validate and control HTML/XHTML forms.
Download

HTML::FormEngine Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Moritz Sinn
  • Publisher web site:
  • http://search.cpan.org/~morni/XML-ParseDTD-0.1.4/ParseDTD.pm

HTML::FormEngine Tags


HTML::FormEngine Description

HTML::FormEngine is a Perl module to create, validate and control HTML/XHTML forms. HTML::FormEngine is a Perl module to create, validate and control HTML/XHTML forms.Example Code #!/usr/bin/perl -w use strict; use CGI; use HTML::FormEngine; #use POSIX; # for setlocale #setlocale(LC_MESSAGES, 'german'); # for german error messages my $q = new CGI; print $q->header; my $Form = HTML::FormEngine->new(scalar $q->Vars); my @form = ( { templ => 'select', NAME => 'Salutation', OPTION => ]], }, { templ => 'hidden_no_title', NAME => 'test123', VALUE => 'test', }, { SIZE => 10, MAXLEN => 20, PREFIX => ], NAME => 'name', TITLE => 'For- / Surname ', ERROR_IN => 'not_null' }, { MAXLEN => 30, NAME => 'Email', ERROR => , ] # rfc822 defines the email address standard }, { templ => 'radio', TITLE => 'Subscribe to newsletter?', NAME => 'newsletter', OPT_VAL => ], OPTION => ], VALUE => 1 }, { templ => 'check', OPTION => 'I agree to the terms of condition!', NAME => "agree", TITLE => '', ERROR => sub{ return("you've to agree!") if(! shift); } } ); $Form->set_seperate(1); $Form->conf(@form); $Form->make(); print $q->start_html('FormEngine example: Registration'); if($Form->ok){ $Form->clear(); print "You've successfully subscribed!"; } print $Form->get, $q->end_html; Requirements: · Carp · Perl


HTML::FormEngine Related Software