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

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

Serving Software Downloads in 976 Categories, Downloaded 29.984.209 Times

CGI::QuickForm 1.93

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


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 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, ">>" ;<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<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 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 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
Productivity  -  1 SOW - Hurlburt Field AFB 1.0
Welcome to the Hurlburt Field mobile app for the 1 SOW. Hurlburt Field, Florida, is home to the Air Force Special Operations Command and the 1st Special Operations Wing. This mobile application was developed by the 1 SOW to help centralize...
17.5 MB  
Entertainment  -  Italy Radio
Here are the most listened music radio from Italy. You can enjoy RAI Radio 1 93.4 RAI Radio 2 97.6, RAI Radio 3 99.9, RAI Radio FD 4, RAI Isoradio 103.3, Radio Deejay 96.7, Radio LatteMiele, m2o 90.5, R101 101.2, Radio Italia Anni 60 89.1, RTL...
2 MB  
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  
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  
Printer Tools  -  Label Templates 1.0
Label Templates are free Opendocument Format label templates for, 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  
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  
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  
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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB