Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.003.323 Times

CGI::QuickForm 1.93

Company: Mark Summerfield
Date Added: July 19, 2013  |  Visits: 388

CGI::QuickForm

Report Broken Link
Printer Friendly Version


Product Homepage
Download (32 downloads)



CGI::QuickForm is a Perl module that provides a quick and simple mechanism for providing on-line CGI forms.<br /><br />When show_form executes it presents the form with the fields requested. As you can see from the minimal example at the beginning of the synopsis it will default everything it possibly can to get you up and running as quickly as possible.<br /><br />If you have specified any validation it will validate when the user presses the submit button. If there is an error it will re-present the form with the erroneous fields marked and with all the data entered in tact. This is repeated as often as needed. Once the user has corrected all errors and the data is valid then your &on_valid_form subroutine will be called so that you can process the valid data in any way you wish.<br /><br />Note that EXAMPLE #1 and EXAMPLE #2 are in this pod; example1, example2, etc. are supplied as files.<br /><br />SYNOPSIS<br /><br /> # Minimal example. (Insecure no error checking.)<br /><br /> #!/usr/bin/perl -w<br /> use strict ;<br /> use CGI qw( :standard :html3 ) ;<br /> use CGI::QuickForm ;<br /><br /> show_form(<br /> -ACCEPT => &on_valid_form, # You must supply this subroutine.<br /> -TITLE => 'Test Form',<br /> -FIELDS => [<br /> { -LABEL => 'Name', }, # Default field type is textfield.<br /> { -LABEL => 'Age', }, # Stored in param( 'Age' ).<br /> ],<br /> ) ;<br /><br /> sub on_valid_form {<br /> my $name = param( 'Name' ) ;<br /> my $age = param( 'Age' ) ;<br /> open PEOPLE, ">>people.tab" ;<br /> print PEOPLE "$name $age<br />" ;<br /> close PEOPLE ;<br /> print header, start_html( 'Test Form Acceptance' ),<br /> h3( 'Test Form Data Accepted' ),<br /> p( "Thank you $name for your data." ), end_html ;<br /> }<br /><br /><br /> # All QuickForm options (aide memoir)<br /><br /> #!/usr/bin/perl -w<br /> use strict ;<br /> use CGI qw( :standard :html3 ) ;<br /> use CGI::QuickForm ;<br /><br /> show_form(<br /> -ACCEPT => &on_valid_form,<br /> -BORDER => 0,<br /> -FOOTER => undef,<br /> -HEADER => undef,<br /> -INTRO => undef,<br /> -LANGUAGE => 'en',<br /> -USER_REQUIRED => undef,<br /> -USER_INVALID => undef,<br /> -TITLE => 'Test Form',<br /> -REQUIRED_HTML => '+',<br /> -INVALID_HTML => '*',<br /> -VALIDATE => undef, # Set this to validate the entire record<br /> -SIZE => undef,<br /> -MAXLENGTH => undef,<br /> -ROWS => undef,<br /> -COLUMNS => undef,<br /> -CHECK => 1,<br /> -SPACE => 0, # Output some newlines to assist debugging if 1<br /> -MULTI_COLUMN => 0,<br /> -NAME => undef,<br /> -onsubmit => undef,<br /> -JSCRIPT => {},<br /> -STYLE_FIELDNAME => '',<br /> -STYLE_FIELDVALUE => '',<br /> -STYLE_BUTTONS => '',<br /> -STYLE_ROW => '',<br /> -STYLE_WHY => '',<br /> -TABLE_OPTIONS => '',<br /> -FIELDS => [<br /> {<br /> -LABEL => 'Personal Details',<br /> -HEADLINE => 1,<br /> -STYLE_FIELDNAME => '',<br /> -COLSPAN => 2,<br /> -END_ROW => 1,<br /> },<br /> {<br /> -LABEL => 'Name',<br /> -START_ROW => 1,<br /> -END_ROW => 1,<br /> -COLSPAN => 1,<br /> -REQUIRED => undef,<br /> -TYPE => 'textfield',<br /> -VALIDATE => undef, # Set this to validate the field<br /> -CLEAN => undef, # Set this to clean up valid data<br /> -DESC => undef,<br /> -STYLE_FIELDNAME => '', # If set over-rides form-level setting<br /> -STYLE_FIELDVALUE => '', # If set over-rides form-level setting<br /> -STYLE_ROW => '', # If set over-rides form-level setting<br /> # Lowercase options are those supplied by CGI.pm<br /> -name => undef, # Defaults to -LABEL's value.<br /> -default => undef,<br /> -size => 30,<br /> -maxlength => undef,<br /> },<br /> # For all others: same QuickForm options as above<br /> # and all CGI.pm options (which vary with -TYPE) available<br /> {<br /> -LABEL => 'Address',<br /> -TYPE => 'textarea',<br /> -rows => 3,<br /> -columns => 40,<br /> },<br /> {<br /> -LABEL => 'Password',<br /> -TYPE => 'password_field',<br /> },<br /> {<br /> -LABEL => 'Hair colour',<br /> -TYPE => 'scrolling_list',<br /> '-values' => [ qw( Red Black Brown Grey White ) ],<br /> -size => 1,<br /> -multiples => undef,<br /> },<br /> {<br /> -LABEL => 'Worst Sport',<br /> -TYPE => 'radio_group',<br /> -values => [ qw( Boxing Cricket Golf ) ],<br /> -default => 'Golf',<br /> },<br /> # Any other CGI.pm field can be used in the same way.<br /> ],<br /> -BUTTONS => [<br /> { -name => 'Add' },<br /> { -name => 'Edit' },<br /> { -name => 'List' },<br /> { -name => 'Remove' },<br /> { -name => 'Clear', -DEFAULTS => 1 },<br /> ],<br /> ) ;<br />

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Cgipm Cgiquickform 1 93 Default Field Formlevel Label Options Overrides Param Setting Undef Valid Validate
Users rating: 0/10

License: Freeware Size: 40.96 KB
USER REVIEWS
More Reviews or Write Review


CGI::QUICKFORM RELATED
Modules  -  Custom Field Template 1.8.2
The Custom Field Template plugin adds the default custom fields on the Write Post/Page. The template format is almost same as the one of the rc:custom_field_gui plugin. The difference is following. * You can set any number of the custom field...
204.8 KB  
Libraries  -  OpenInteract2::Manual::Widgets 1.99_06
OpenInteract2::Manual::Widgets Perl module contains template widgets in OpenInteract. OpenInteract2 supports using templates as a simple graphical widget. A widget is a common element into which you can just plug in text or parameters to...
931.84 KB  
Printer Tools  -  Label Templates 1.0
Label Templates are free Opendocument Format label templates for Openoffice.org, KOffice or any other Office suite ODF ready for making labels. Collection includes CD, DVD, address, mailing, round, media label templates, Avery sizes and more. US...
512 KB  
HTML Utilities  -  django-picklefield 0.2.1
**django-picklefield** provides an implementation of a pickled object field. Such fields can contain any picklable objects. The implementation is taken and adopted from `Django snippet #1694 `_ by Taavi Taijala, which is in
10.24 KB  
Libraries  -  File::Sort 1.01
File::Sort is a Perl module to sort a file or merge sort multiple files. SYNOPSIS use File::Sort qw(sort_file); sort_file({ I => [qw(file_1 file_2)], o => file_new, k => 5.3,5.5rn, -t => | }); sort_file(file1, file1.sorted); This...
32.77 KB  
Development Tools  -  Multi-Slider-Source ver1.7(Scripts) 1.7
multi_slider_source1p7(noSlider) requires only noSlider(number of the Sliders,scalar), it generate a source block with outputs = noSlider. multi_slider_source1p7(low,high) requires low and high values in form of row vector, it generate a source...
51.2 KB  
Networking  -  Default Categories 0.11b
Plugin initially produced on behalf of Puffbox.Is this plugin lacking a feature you want? I'm happy to accept offers of feature sponsorship: contact me and we can discuss your ideas.# Installation :The plugin is simple to install: 1. Download...
10 KB  
Modules  -  Views Crosstab 6.x-1.0-alpha1
This views style plugin lets you display views results as a crosstab - grouping rows by one field, columns by another, and using an aggregate function (count, sum etc) of a third field for the table data.For example, this module will take a table...
10 KB  
Modules  -  Form Extended 6.x-6.x-de
Note: the module included handlers are still only a proof of concept - please don't use on production sitesThis module is mainly a plug-able API that lets developers extend Drupal's form API, by setting custom form properties and define their...
10 KB  
Desktop Utilities  -  WMcp 1.2.8
WMcp is a simple dockable pager for use in Window Maker. Installation: Unzip the file: gunzip wmcp-1.2.8.tar.gz Untar the file: tar xvf wmcp-1.2.8.tar CD to src dir: cd wmcp-1.2.8 do one of these makes: make -- make wmcp using the...
8.19 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB