Login   Register  
PHP Classes
elePHPant
Icontem

Forms generation and validation: HTML forms generation and validation.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Manuel Lemos
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 45
All time rank: 1
Week rank: 3 Down1 in Portugal Portugal Equal


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
Class that generates HTML forms supporting:

- Multiple inputs may be interconnected in such way that client side events that occur on one input can trigger actions on the context of other inputs. Developers may use input interconnection support without writing Javascript code.
- Can be extended with new types of input controls plug-in classes.
- Custom input plug-in classes can be used to support for handling client site events on the server side without submitting the form or redrawing the whole form page
- Some control plug-in classes are made available:
* AJAX based form submission (without reloading the whole page)
* Auto-complete text inputs
* Select a location on a map using Google Maps API
* Calendar date input
* CAPTCHA test to prevent automated access by robots
* Linked select input to switch select options when the value of another input changes. An unlimited number of selected can be linked in cascade. Additional plug-in subclasses are provided to retrive option groups from a MySQL database or many other SQL databases using the Metabase PEAR::MDB2 PHP database abstraction layer APIs
* Manage animations that apply visual effects to the page form elements, like: fade-in, fade-out, show, hide, update content, etc..
- XHTML compliant output.
- Load submitted form field values even with register_globals option Off and strip slashes when magic_quotes_gpc option is On.
- Keyboard navigation support:
* Attachment of labels with activation keys to each form field.
* Tab navigation order index.
- Built-in server side (PHP based) and client side (Javascript 1.0 or better) field validation for:
* E-mail address
* Credit card numbers (Visa, Mastercard, American Express, Discover, Diners Club, Carte Blanche, enRoute, JCB, any of these or even determined by a select field).
* Regular expressions.
* Field not empty.
* Field equal to another (useful for password confirmation fields).
* Field different from another (useful for reminder fields that must not be equal to the actual password).
* As set (for check boxes, radio buttons and select multiple fields).
* As integer number (with range limitation).
* As floating point number (with range limitation).
* Programmer defined client and server validation functions.
- Highlight invalid fields rendering them distinct CSS styles
- Security attack prevention by optionally discarding invalid values passed in fields that could not be edited by users but may be spoofed by attackers.
- Option to define a value that, when used in a field, it is accepted without performing any of the validations defined for the field.
- Ability to stop the user from submiting a form more than once inadvertdly.
- Sub form validation (validate only smaller set of field depending on the submit button that was used).
- Composition and generation of the form HTML output with fields displayed as fully accessible or in read-only mode.
- Generation of Javascript functions (useful to set to the page ONLOAD event):
* Set the input focus to a field.
* Select the text of a field.
* Set the input focus and select the text of a field.
* Enable and disable input fields
- Automatic capitalization of the text of a field:
* Upper case.
* Lower case.
* Word initials
- Replacement of text field expressions to perform adjustments like trimming whitespace or auto-complete values based on rules defined by regular expressions
- Compose forms with templates using plain HTML files with embedded PHP code or using the Smarty template engine with a supplied pre-filter plugin
- Etc.

  Classes of Manuel Lemos  >  Forms generation and validation  >  Download Download .zip .tar.gz  >  Support forum Support forum (237)  >  Blog Blog (8)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Forms generation and validation
Base name: formsgeneration
Description: HTML forms generation and validation.
Version: 1.0.5
PHP version: 3
License: BSD License
All time users: 83703 users
All time rank: 1
Week users: 49 users
Week rank: 18 Down
 
  Groups   Screenshots Screenshots   Video Tutorials   Rate classes User ratings   Dependencies  
  Dependents   Trackback   Applications   Related pages   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Validation Validation algorithms View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes

  Files folder image Screenshots  
form_examples.jpg
File Role Description
Accessible without login Image file form_examples.jpg Screen Examples of several types of forms generated by the class
Accessible without login Image file paged.gif Screen Example of a form presented using a tabbed pages layout
Accessible without login Image file auto_complete.gif Screen Example of form using the auto-complete input plug-in
Accessible without login Image file captcha.gif Screen Example of form using the CAPTCHA test input plug-in
Accessible without login Image file date.gif Screen Example of form using the calendar date input plug-in
Accessible without login Image file linked_select.gif Screen Example of form using the linked select input plug-in
Accessible without login Image file map_location.gif Screen Example of form using the Google Maps map location test input plug-in
Accessible without login Image file upload_progress.gif Screen Example of the form using the upload progress bar and several statistics


  Tutorial videos and presentations  
PHP Forms Generation and Validation tutorial
Title Description Duration
Video PHP Forms Generation and Validation tutorial Tutorial presentation of the PHP Forms Generation and Validation class 04:06:57
Presentation Forms With Ajax And Advanced Plugins Tutorial of the PHP Forms Generation and Validation class with plugins for AJAX and other advance... 33
Video Formulários Web em PHP com plug-ins avançados e AJAX Formulários Web em PHP com plug-ins avançados e AJAX Manuel Lemos Outubro de 2006 02:02:47
Presentation Formulários Web em PHP com plug-ins avançados e AJAX Tutorial sobre a classe de geração e validação de formulários Web em PHP e seus plug-ins avançado... 35

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (87%) Good (82%) Sufficient (73%) Sufficient (78%) Sufficient (74%) Sufficient (62%) Good (80%) 4
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
Metabase Download .zip .tar.gz Used by the custom linked select plug-in class that retrieves groups of options from many SQL databases Conditional

  Other classes that need this package  
Class Why it is needed Dependency
CRUD Class for generate the forms Required
Database access class Retrieve values of processed form fields Required
Date and time utility class Generates forms with the fields defined by this class Required
Ezmlm mailing list manager class Generate and process forms for creating and editing the mailing lists Required
FCKEditor Plug-in This is a plug in for Manuel Lemos' forms class Required
Multipage forms class Generates and validates the forms Required
Navelo CMS Helping to generate all form in CMS Required
PHP Webmaster Tools API Present the user interface to configure the options to retrieve the top searched pages Conditional
Plugin Cal class This is the main class Required
Secure HTML parser and filter Used in the secure_html_filter.php Web interface test script Conditional
Xinha plug-in This is the main forms generation and validation class that this plug-in extends Required

  Pages that reference this package  
Forms generation and validation
If you are a web developer you know, and if you are not you will know now, that Forms generations and validations are very common in our life...
links for 2006-11-22
an interesting php class (if you’re into that sort of thing) for generating and validating forms...
links for 2007-06-23
PHP Classes - Class: Forms generation and validation Looks to be a very comprehensive form generation class...
Lisää wanhaa kehityspäiväkirjaa
-
New PHP class for the work with the forms
today it left new class for the work with the forms greatly I recommend...
PHP - SQL Abragen sichern
Ich habe dazu gerade eine php classe gefunden, ich werde sie mir bei gelegenheit mal anschauen...
PHP Forms Class with 4 hour Video Tutorial
Manuel Lemos has made a 4 hour video tutorial for his popular PHP Forms Generation and Validation class..
PHP Forms Generation and Validation Class
Here is a great new class from phpclasses.org for generating and validating forms with php...
PHPClasses.org Blog: Locating addresses on Google Maps embedded in PHP generated Web forms
On the PHPClasses.org blog there’s a new tutorial showing how to use the goe-location support the Google Maps API offers to search for and find an address...
Smarty Xmas
The first Xmas card arrived in the mail today, from the parents with a couple nice gift cards from Safeway in it, just what I need!...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
Dog Obedience
Used to generate forms in this site about training dogs
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
Mailing list
Support mailing list where users of this class can get help. Use preferrably the Support forum page above.
Lista de discussão
Lista de discussão sobre a classe de formulários Web para quem fala Português
Live examples
Pages with the examples of the class running live
Forms talk slides
Slides of a talk about the forms class, advanced plug-ins and AJAX support. The talk is in Portuguese.
Tutorial on DevShed
Tutorial on DevShed by Melonfire about creating and validating forms using this class
Metastorage
Metastorage is a Data Access Object class generator that also generates forms to edit data objects using this forms class
MetaL project
The documentation of this class was written in the MetaL meta-programming language.
ohloh project
Project listing at ohloh.net
Smarty
Smarty template engine for which it is provided a plug-in filter to compose forms with Smarty templates
Upload progress extension
Upload progress PHP extension necessary to run the form upload progress plug-in

  Files folder image Files  
File Role Description
Files folder imagesmarty (2 directories)
Files folder imagetemplates (24 files)
Files folder imagetest (1 file, 2 directories)
Accessible without login Plain text file test_form.php Example Forms class test page script
Accessible without login HTML file forms.html Doc. Forms class documentation in HTML format
Accessible without login Plain text file animation.js Data Javascript class to use with the page element animation plug-in
Plain text file blog_post_data_source.php Class Blog post data source class for the crude example script
Plain text file blog_post_model.php Class Example blog post model class for the scaffolding example script
Plain text file blog_post_view.php Class Example Blog post presentation definition class for the scaffolding example
Accessible without login Plain text file country_codes.php Aux. Country codes definitions for the maps example
Plain text file forms.php Class Forms class file
Plain text file form_ajax_submit.php Class Custom plug-in class to submit forms with AJAX to not need to reload the page
Plain text file form_animation.php Class Page element animation plug-in
Plain text file form_auto_complete.php Class Custom plug-in class to auto-complete text entered in text inputs
Plain text file form_captcha.php Class Custom input plug-in class for implementing CAPTCHA tests to prevent robots access allowing only humans
Plain text file form_crud.php Class Custom input to handle scaffolding CRUD events by accessing data source objects.
Plain text file form_custom_validation.php Class Example plug-in class to demonstrate how to perform new arbitrary validation types
Plain text file form_date.php Class Custom input plug-in class for editing calendar dates
Plain text file form_html_editor.php Class HTML editor plug-in input class
Plain text file form_layout_paged.php Class Custom container input class to layout inputs in tabbed pages
Plain text file form_layout_vertical.php Class Custom container plug-in class to render a group of inputs automatically without separate HTML or templates
Plain text file form_linked_select.php Class Custom linked select input class
Plain text file form_list_select.php Class Custom list select input class
Plain text file form_map_location.php Class Custom input plug-in class for implementing a world map location selection input using Google Maps API
Plain text file form_mdb2_auto_complete.php Class Custom auto complete input class using database queries with PEAR::MDB2 API
Plain text file form_mdb2_linked_select.php Class Custom linked select input class that retrieves options from a database with the PEAR::MDB2 API adapted by Lukas Smith
Plain text file form_metabase_auto_complete.php Class Custom plug-in class to auto-complete text entered in text inputs that retrieves completion texts dynamically from a database using the Metabase API
Plain text file form_metabase_linked_select.php Class Custom linked select input plug-in class that retrieves options from a database with the Metabase API
Plain text file form_mysql_auto_complete.php Class Custom plug-in class to auto-complete text entered in text inputs that retrieves completion texts dynamically from a MySQL database
Plain text file form_mysql_linked_select.php Class Custom linked select input plug-in class that retrieves options from a MySQL database
Plain text file form_recaptcha.php Class reCAPTCHA custom input class
Plain text file form_scaffolding.php Class Custom container input to manage scaffolding forms
Plain text file form_secure_submit.php Class Secure form submit input plug-in class to prevent CSRF attacks
Plain text file form_upload_progress.php Class Custom plug-in class to monitor the progress of upload of a form with files and show a progress bar
Accessible without login Plain text file html_editor.js Data HTML editor Javascript class
Accessible without login Image file indicator.gif Icon AJAX load indicator animation icon
Accessible without login Plain text file locations.schema Data Locations database schema definition in format for the Metabase linked select inputs example
Accessible without login Plain text file locations.sql Data Locations MySQL database schema dump for the linked select inputs example
Accessible without login Plain text file markerclusterer.js Data MarkerClusterer Javascript class by Xiaoxi Wu
Accessible without login Plain text file md5.js Data Henri Torgemane's Javascript md5 encoding function
Accessible without login Image file noise.gif Data Example of noise GIF image to obfuscate the CAPTCHA input images
Accessible without login Image file noise.png Data Example of noise PNG image to obfuscate the CAPTCHA input images
Accessible without login Image file progress.gif Icon Upload progress bar stripe background image
Accessible without login Image file pulldown.gif Icon Pulldown menu button icon image
Accessible without login Plain text file README.md Data Description
Accessible without login Plain text file rfc1867.php-4.3.11.patch Data Patch to enable upload progress monitoring in PHP 4.3.11
Accessible without login Plain text file rfc1867.php-4.4.4.patch Data Patch to enable upload progress monitoring in PHP 4.4.4
Accessible without login Plain text file rfc1867.php-4.4.9.patch Data Patch to enable upload progress monitoring in PHP 4.4.9 (use patch -p0 to apply)
Accessible without login Plain text file setup_locations_database.php Aux. Script to install the locations database schema definition in format for the Metabase linked select inputs example
Accessible without login Plain text file test_age_date_input.php Example Example to demonstrate how to use the custom date input with the ask age option
Accessible without login Plain text file test_ajax_form.php Example Example to show how to define and process a form with AJAX submit plug-in
Accessible without login Plain text file test_animation.php Example Example to demonstrate how to use the animation plug-in
Accessible without login HTML file test_animation_page.html Output Test HTML page generated by the class using test_animation.php script
Accessible without login HTML file test_auto_complete.html Output Test HTML page generated by the class using test_auto_complete.php script.
Accessible without login Plain text file test_auto_complete.php Example Example to show how to use the auto-complete text custom input plug-in
Accessible without login Plain text file test_auto_layout_form.php Example Example to show how to render a inputs with the automatic vertical layout plug-in
Accessible without login Plain text file test_captcha_input.php Example Example to demonstrate how to use the custom CAPTCHA input plug-in
Accessible without login HTML file test_captcha_input_page.html Output Test HTML page generated by the class using test_captcha_input.php script.
Plain text file test_crud_input.php Class Example to demonstrate how to use the scaffolding and crud inputs together
Accessible without login Plain text file test_custom_validation.php Example Example to demonstrate how to use the custom validation plug-in
Accessible without login Plain text file test_date_input.php Example Example to demonstrate how to use the custom date input plug-in
Accessible without login HTML file test_date_input_page.html Output Test HTML page generated by the class using test_date_input.php script.
Accessible without login Plain text file test_dependent_validation.php Example Example to demonstrate how validate inputs depending on the state of a checkbox
Accessible without login Plain text file test_encoded_password.php Example Example of password encoding before form submission
Accessible without login HTML file test_form_page.html Output Test HTML page generated by the class using test_form.html script.
Accessible without login HTML file test_form_results_page.html Output Test HTML results page generated by the class using test_form.html script.
Accessible without login Plain text file test_html_editor.php Example Example to demonstrate how to use the HTML editor custom input
Accessible without login Plain text file test_javascript_string_escaping.php Test Test script to verify the generation of escaped Javascript strings
Accessible without login Plain text file test_linked_select.php Example Example to demonstrate how to link multiple select inputs
Accessible without login HTML file test_linked_select_page.html Output Test HTML page generated by the class using test_linked_select_input.php script.
Accessible without login Plain text file test_list_select.php Example Example to demonstrate the list select input
Accessible without login Plain text file test_map_location_input.php Example Example to demonstrate how to use the Google Maps map location custom input plug-in
Accessible without login Plain text file test_mdb2_auto_complete.php Example Example to demonstrate how to auto-complete a text input with texts from a database using PEAR::MDB2 API
Accessible without login Plain text file test_mdb2_linked_select.php Example Example to demonstrate how to link multiple select inputs retrieving options from a database with the PEAR::MDB2 API adapted by Lukas Smith
Accessible without login Plain text file test_metabase_auto_complete.php Example Example to show how to use the auto-complete text custom input plug-in retrieving auto-complete texts from a database using the Metabase API
Accessible without login Plain text file test_metabase_linked_select.php Example Example to demonstrate how to link multiple select inputs retrieving options from a database with the Metabase API
Accessible without login Plain text file test_mysql_auto_complete.php Example Example to show how to use the auto-complete text custom input plug-in retrieving auto-complete texts from a MySQL database
Accessible without login Plain text file test_mysql_linked_select.php Example Example to demonstrate how to link multiple select inputs retrieving options from a MySQL database
Accessible without login Plain text file test_paged_layout_form.php Example Forms class example to render a inputs in tabbed pages with the paged layout plug-in
Accessible without login Plain text file test_recaptcha_input.php Example Example to demonstrate how to use the reCAPTCHA custom input
Accessible without login Plain text file test_scaffolding_input.php Example Example to demonstrate how to use the scaffolding input
Accessible without login Plain text file test_secure_submit.php Example Example to demonstrate how use the secure submit custom input to prevent CSRF attacks
Accessible without login Plain text file test_smarty3_form.php Example Forms class test page using Smarty 3 plug-in filter
Accessible without login Plain text file test_smarty_form.php Example Forms class test page using Smarty 2 plug-in filter
Accessible without login Plain text file test_upload.php Example File uploading example.
Accessible without login Plain text file test_upload_progress.php Example Example to show how to use the form upload progress custom input plug-in

  Files folder image Files  /  smarty  
File Role Description
Files folder image2 (2 directories)
Files folder image3 (2 directories)

  Files folder image Files  /  smarty  /  2  
File Role Description
Files folder imageplugins (5 files)
Files folder imagetemplates_c (1 file)

  Files folder image Files  /  smarty  /  2  /  plugins  
File Role Description
  Accessible without login Plain text file insert.formadddatapart.php Aux. Smarty plug-in script to insert form data parts
  Accessible without login Plain text file insert.formaddinputhiddenpart.php Aux. Smarty plug-in script to insert form input as hidden parts
  Accessible without login Plain text file insert.formaddinputpart.php Aux. Smarty plug-in script to insert form input parts
  Accessible without login Plain text file insert.formaddlabelpart.php Aux. Smarty plug-in script to insert form input label parts
  Accessible without login Plain text file prefilter.form.php Aux. Smarty 2 engine pre-filter plugin for form template processing

  Files folder image Files  /  smarty  /  2  /  templates_c  
File Role Description
  Accessible without login Plain text file .htaccess Data Apache configuration file to forbid access to all files in this directory. This file is meant mostly to force the creation Smarty compiled templates directory templates_c.

  Files folder image Files  /  smarty  /  3  
File Role Description
Files folder imageplugins (5 files)
Files folder imagetemplates_c (1 file)

  Files folder image Files  /  smarty  /  3  /  plugins  
File Role Description
  Accessible without login Plain text file insert.formadddatapart.php Aux. Smarty 3 plug-in script to insert form data parts
  Accessible without login Plain text file insert.formaddinputhiddenpart.php Aux. Smarty 3 plug-in script to insert form input as hidden parts
  Accessible without login Plain text file insert.formaddinputpart.php Aux. Smarty 3 plug-in script to insert form input parts
  Accessible without login Plain text file insert.formaddlabelpart.php Aux. Smarty 3 plug-in script to insert form input label parts
  Accessible without login Plain text file prefilter.form.php Aux. Smarty 3 engine pre-filter plugin for form template processing

  Files folder image Files  /  smarty  /  3  /  templates_c  
File Role Description
  Accessible without login Plain text file .htaccess Data Apache configuration file to forbid access to all files in this directory. This file is meant mostly to force the creation Smarty compiled templates directory templates_c.

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file footer.tpl Data Example page footer Smarty template
  Accessible without login Plain text file form.tpl Data Smarty HTML template for composing example form (copy to your Smarty templates directory)
  Accessible without login Plain text file formerror.tpl Data Smarty template for displaying validation errors in the example form
  Accessible without login Plain text file form_age_body.html.php Aux. Date custom input with the ask age option form body template
  Accessible without login Plain text file form_ajax_body.html.php Aux. HTML template with embedded PHP to define the form body for the AJAX submit example
  Accessible without login Plain text file form_animation.html.php Aux. Animation plug-in form template
  Accessible without login Plain text file form_auto_complete_body.html.php Aux. HTML template with embedded PHP to define the form body for auto-complete text custom input plug-in
  Accessible without login Plain text file form_auto_layout_body.html.php Aux. Template script to render the inputs of the automatic layout custom input plug-in
  Accessible without login Plain text file form_body.html.php Aux. HTML template with embedded PHP to define the form body
  Accessible without login Plain text file form_captcha_body.html.php Aux. CAPTCHA custom input form body template
  Accessible without login Plain text file form_custom_validation.html.php Aux. Custom validation form body template
  Accessible without login Plain text file form_date_body.html.php Aux. Date custom input form body template
  Accessible without login Plain text file form_dependent_validation.html.php Aux. Dependent validation form body template
  Accessible without login Plain text file form_frame.html.php Aux. HTML template with embedded PHP to define the form frame
  Accessible without login Plain text file form_linked_select_body.html.php Aux. Linked selects form body template
  Accessible without login Plain text file form_list_select_body.html.php Aux. List select input example form body template
  Accessible without login Plain text file form_locations_aut...plete_body.html.php Aux. Auto-complete location input example form body template
  Accessible without login Plain text file form_map_location_body.html.php Aux. Google Maps map location custom input form body template
  Accessible without login Plain text file form_paged_layout_body.html.php Aux. Template script to render the inputs of the paged layout custom input plug-in
  Accessible without login Plain text file form_password_body.html.php Aux. Encoded password form body template
  Accessible without login Plain text file form_upload_body.html.php Aux. Upload file form body template
  Accessible without login Plain text file header.tpl Data Example page header Smarty template
  Accessible without login Plain text file message.html.php Data HTML template with embedded PHP to display a message feedback window
  Accessible without login Plain text file mypage.tpl Data Example page wide Smarty template that integrates the form template output

  Files folder image Files  /  test  
File Role Description
Files folder imageexpect (13 files)
Files folder imagegenerated (1 file)
  Accessible without login Plain text file test.php Test Unit test suite script

  Files folder image Files  /  test  /  expect  
File Role Description
  Accessible without login Plain text file all_client_errors_...date_input.php.html Data Expected output of the test_age_date_input.php script
  Accessible without login Plain text file all_client_errors_...validation.php.html Data Expected output of the test_custom_validation.php script
  Accessible without login Plain text file all_client_errors_...date_input.php.html Data Expected output of the test_date_input.php script
  Accessible without login HTML file all_client_errors_test_form.php.html Data Expected output of the test_form.php script showing all client validation errors
  Accessible without login HTML file all_server_errors_test_form.php.html Data Expected output of the test_form.php script after processing server validation showing all errors
  Accessible without login HTML file server_test_form.php.html Data Expected output of the test_form.php script after processing server validation errors
  Accessible without login Plain text file set_age_date_test_date_input.php.html Data Expected output of the setagedate test
  Accessible without login Plain text file set_date_test_date_input.php.html Data Expected output of the setdate text
  Accessible without login Plain text file test_age_date_input.php.html Data Expected output of the test_age_date_input.php script
  Accessible without login Plain text file test_custom_validation.php.html Data Expected output of the test_custom_validation.php script
  Accessible without login Plain text file test_date_input.php.html Data Expected output of the test_date_input.php script
  Accessible without login HTML file test_form.php.html Data Expected output of the test_form.php script
  Accessible without login Plain text file test_javascript_string_escaping.php.txt Data Expected ouput of the test to verify the escaping of Javascript strings.

  Files folder image Files  /  test  /  generated  
File Role Description
  Accessible without login Plain text file .cvsignore Data Dummy file to force the generated directory creation

Install with Composer Install with Composer - Download Download all files: formsgeneration.tar.gz formsgeneration.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.