CGI::FormBuilder

Description

CGI::FormBuilder is a Perl module to easily generate and process stateful forms. SYNOPSIS use CGI::FormBuilder; # Assume we did a DBI query to get existing values my $dbval = $sth->fetchrow_hashref; # First create our form my $form = CGI::FormBuilder->new( name => acctinfo, method => post, stylesheet => /path/to/style.css, values => $dbval, # defaults ); # Now create form fields, in order # FormBuilder will automatically determine the type for you $form->field(name => fname, label => First Name); $form->field(name => lname, label => Last Name); # Setup gender field to have options $form->field(name => gender, options => [qw(Male Female)] ); # Include validation for the email field $form->field(name => email, size => 60, validate => EMAIL, required => 1); # And the (optional) phone field $form->field(name => phone, size => 10, validate => /^1?-?d{3}-?d{3}-?d{4}$/, comment => optional); # Check to see if were submitted and valid if ($form->submitted && $form->validate) { # Get form fields as hashref my $field = $form->fields; # Do something to update your data (you would write this) do_data_update($field->{lname}, $field->{fname}, $field->{email}, $field->{phone}, $field->{gender}); # Show confirmation screen print $form->confirm(header => 1); } else { # Print out the form print $form->render(header => 1); }.

Formbuilder - Cgi - Cgiformbuilder - Perl Module - Field - Name - Form - Perl - Process - Stateful - Libraries - Programming

Published By:Nate Wiger

License Type:Freeware

Date Added:25 October, 2010

Version:3.0501

Price:Free

Downloads:97

Size:163.8 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration.

DateAug 27, 2010

AuthorDavid Baird

Size46.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Maypole::FormBuilder is a Perl module with CGI::FormBuilder support in Maypole.

DateNov 3, 2010

AuthorDavid Baird

Size37.9 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Wsh, "Web Shell" is a remote UNIX/WIN shell, that works via HTTP/HTTPS.

DateOct 13, 2010

AuthorAlex Dyatlov

Size24.6 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

Simple Page Archive is a mirror and archiving tool to copy Web pages you are interested in. The CGI script downloads all images and CSS files to preserve the mirrored Web page. It works with the ZEUS (www.zeus.com) and Apache (www.apache.

DateSep 16, 2010

AuthorAlexander Meisel

Size5.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Internet

lisp-cgi-utils is a CGI library for Common Lisp. It implements a very basic HTTP/CGI interface (sending headers, getting GET/POST and environment variables) and offers tools for easier HTML generation with special support for handling HTML forms.

DateAug 20, 2010

AuthorAlexander Schreiber

Size31.7 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming