Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    HTML::FormStructure 0.04

    Download button

    No screenshots available
    Downloads: 210  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Naoto Ishikawa | More programs
    Perl Artistic License / FREE
    February 12th, 2010, 02:40 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::FormStructure description

    Accessor for HTML FORM definition

    HTML::FormStructure is a Perl module to hold definition of FORM in your script. It have the part of generating FORM tags, validating via itself, and storeing cgi(apache request)'s parameters. You can access this object in the perl souce code or templates.

    SYNOPSIS

     use HTML::FormStructure;
     use CGI;
     $cgi = CGI->new;
     $option = { form_accessors => [qw(foo bar baz)],
     query_accessors => [qw(foo bar baz)], };

     $form = HTML::FormStructure->new(
     &arrayref_of_queries,
     $cgi_object,
     $option
     );

     sub arrayref_of_queries {
     return [{
     name => 'user_name',
     type => 'text',
     more => 6,
     less => 255,
     column => 1,
     },{
     name => 'email',
     type => 'text',
     more => 1,
     less => 255,
     be => [qw(valid_email)],
     column => 1,
     },{
     name => 'sex',
     type => 'radio',
     value => [1,2],
     checked => 1,
     column => 1,
     },{
     name => 'birthday',
     type => 'text',
     be => [qw(valid_date)],
     more => 1,
     less => 255,
     column => 1,
     consist => [{
     name => 'year',
     type => 'text',
     more => 1,
     less => 4,
     be => [qw(is_only_number)],
     },{
     name => 'month',
     type => 'text',
     more => 1,
     less => 2,
     be => [qw(is_only_number)],
     },{
     name => 'day',
     type => 'text',
     more => 1,
     less => 2,
     be => [qw(is_only_number)],
     }];
     }];
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    form definition | HTML form | form structure | HTML | form | definition

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM