PHP Classes
Icontem

Class: Forms generation and validation


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Manuel Lemos  >  Forms generation and validation  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Screenshots Screenshots   Video Videos   Supplied by   Group folder image Groups   Detailed description   Freshmeat project  
  Rate classes User ratings   Dependencies   Dependents   Trackback   Applications   Related links   Files Files  
  • Screenshots:

    Examples of several types of forms generated by the class
    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:

    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
    Video Forms With Ajax And Advanced Plugins Tutorial of the PHP Forms Generation and Validation class with plugins for AJAX and other advance... 00:00: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
  • Supplied by:

    Picture of Manuel Lemos
    Name: Manuel Lemos <e-mail contact>
    Published packages: 28
    Country: Portugal Portugal - PHP jobs in Portugal
    Home page: http://www.ManuelLemos.net/
    Age: 40
    All time rank: 1
    Week rank: 1

    Browse this author's classes

  • 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
  • Detailed description:

    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.
  • Freshmeat project:

    Forms generation and validation
    Project record: htmlformsgenerationandvalidation
    Popularity score: 6370.99 (10.35%)
    Popularity rank: 215 (PHP Classes: 2)
    Vitality score: 5274.89 (0.78%)
    Rating: 8.23 (Votes: 24) Please rate this class in Freshmeat
  • User ratings:

    Ratings
    Utility
    Consistency
    Documentation
    Examples
    Tests
    Videos
    Overall
    Rank
    All time:
    Good (87.6%)
    Good (83.6%)
    Sufficient (73.9%)
    Sufficient (79.1%)
    Sufficient (76.5%)
    Sufficient (63.9%)
    Good (81.5%)
    1
    Month:
    Not yet rated by the users
  • Packages needed by this class:

    Class Dependency Why it is needed
    Metabase
    Conditional
    Used by the custom linked select plug-in class that retrieves groups of options from many SQL databases
  • Packages that need this class:

    Class Dependency Why it is needed
    CRUD Class
    Required
    for generate the forms
    Database access class
    Required
    Retrieve values of processed form fields
    Date and time utility class
    Required
    Generates forms with the fields defined by this class
    Ezmlm mailing list manager class
    Required
    Generate and process forms for creating and editing the mailing lists
    FCKEditor Plug-in
    Required
    This is a plug in for Manuel Lemos' forms class
    Multipage forms class
    Required
    Generates and validates the forms
    Navelo CMS
    Required
    Helping to generate all form in CMS
    Plugin Cal class
    Required
    This is the main class
    Xinha plug-in
    Required
    This is the main forms generation and validation class that this plug-in extends
  • Trackback links:

    Link Description
    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...
    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 blog trackback links Latest blog trackback links
  • Applications that use this class:

    Link Description
    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 links:

    Link Description
    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:

    File Role Description
    Plain text file animation.js Data Javascript class to use with the page element animation plug-in
    HTML file forms.html Doc. Forms class documentation in HTML format
    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_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_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_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_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
    Image file indicator.gif Icon AJAX load indicator animation icon
    Plain text file locations.schema Data Locations database schema definition in format for the Metabase linked select inputs example
    Plain text file locations.sql Data Locations MySQL database schema dump for the linked select inputs example
    Plain text file md5.js Data Henri Torgemane's Javascript md5 encoding function
    Image file noise.gif Data Example of noise GIF image to obfuscate the CAPTCHA input images
    Image file noise.png Data Example of noise PNG image to obfuscate the CAPTCHA input images
    Files folder image plugins
      Plain text file insert.formadddatapart.php Aux. Smarty plug-in script to insert form data parts
      Plain text file insert.formaddinputhiddenpart.php Aux. Smarty plug-in script to insert form input as hidden parts
      Plain text file insert.formaddinputpart.php Aux. Smarty plug-in script to insert form input parts
      Plain text file insert.formaddlabelpart.php Aux. Smarty plug-in script to insert form input label parts
      Plain text file prefilter.form.php Aux. Smarty engine pre-filter plugin for form template processing (copy to your Smarty plugins directory)
    Image file progress.gif Icon Upload progress bar stripe background image
    Image file pulldown.gif Icon Pulldown menu button icon image
    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
    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
    Files folder image templates
      Plain text file footer.tpl Data Example page footer Smarty template
      Plain text file form.tpl Data Smarty HTML template for composing example form (copy to your Smarty templates directory)
      Plain text file formerror.tpl Data Smarty template for displaying validation errors in the example form
      Plain text file form_age_body.html.php Aux. Date custom input with the ask age option form body template
      Plain text file form_ajax_body.html.php Aux. HTML template with embedded PHP to define the form body for the AJAX submit example
      Plain text file form_animation.html.php Aux. Animation plug-in form template
      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
      Plain text file form_auto_layout_body.html.php Aux. Template script to render the inputs of the automatic layout custom input plug-in
      Plain text file form_body.html.php Aux. HTML template with embedded PHP to define the form body
      Plain text file form_captcha_body.html.php Aux. CAPTCHA custom input form body template
      Plain text file form_custom_validation.html.php Aux. Custom validation form body template
      Plain text file form_date_body.html.php Aux. Date custom input form body template
      Plain text file form_dependent_validation.html.php Aux. Dependent validation form body template
      Plain text file form_frame.html.php Aux. HTML template with embedded PHP to define the form frame
      Plain text file form_linked_select_body.html.php Aux. Linked selects form body template
      Plain text file form_locations_aut...plete_body.html.php Aux. Auto-complete location input example form body template
      Plain text file form_map_location_body.html.php Aux. Google Maps map location custom input form body template
      Plain text file form_paged_layout_body.html.php Aux. Template script to render the inputs of the paged layout custom input plug-in
      Plain text file form_password_body.html.php Aux. Encoded password form body template
      Plain text file form_upload_body.html.php Aux. Upload file form body template
      Plain text file header.tpl Data Example page header Smarty template
      Plain text file message.html.php Data HTML template with embedded PHP to display a message feedback window
      Plain text file mypage.tpl Data Example page wide Smarty template that integrates the form template output
    Files folder image templates_c
      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 test/expect
      Plain text file all_client_errors_...date_input.php.html Data Expected output of the test_age_date_input.php script
      Plain text file all_client_errors_...validation.php.html Data Expected output of the test_custom_validation.php script
      Plain text file all_client_errors_...date_input.php.html Data Expected output of the test_date_input.php script
      HTML file all_client_errors_test_form.php.html Data Expected output of the test_form.php script showing all client validation errors
      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
      HTML file server_test_form.php.html Data Expected output of the test_form.php script after processing server validation errors
      Plain text file test_age_date_input.php.html Data Expected output of the test_age_date_input.php script
      Plain text file test_custom_validation.php.html Data Expected output of the test_custom_validation.php script
      Plain text file test_date_input.php.html Data Expected output of the test_date_input.php script
      HTML file test_form.php.html Data Expected output of the test_form.php script
      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 test/generated
      Plain text file .cvsignore Data Dummy file to force the generated directory creation
    Files folder image test
      Plain text file test.php Test Unit test suite script
    Plain text file test_age_date_input.php Example Example to demonstrate how to use the custom date input with the ask age option
    Plain text file test_ajax_form.php Class Example to show how to define and process a form with AJAX submit plug-in
    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.
    Plain text file test_auto_complete.php Example Example to show how to use the auto-complete text custom input plug-in
    Plain text file test_auto_layout_form.php Example Example to show how to render a inputs with the automatic vertical layout plug-in
    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.