PHP Classes
elePHPant
Icontem

PHP Forms Generation and Validation Class: Generate and validate HTML forms

Recommend this page to a friend!
  Info   View files View files (28)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-01-03 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,876 All time: 2,040 This week: 1,099Up
Version License PHP version Categories
phpforms 1.0Free for non-comm...4.3.0HTML, Validation
Description Author

This package can be used to generate and validate.

There is the main class that can generate and validate the form.

There is a generic form control class and several derived classes that can render all the basic types of form inputs and also custom inputs.

Currently there classes for rendering inputs of the types: button, check box, date picker, file, hidden, image, label, password, radio, reset, select, submit, text and textarea.

The form can be rendered with templates that contain marks that determine where the inputs and labels appear.

The main class can validate form inputs using several types of built-in rules, as well with custom rules implemented by configurable functions and parameters.

Currently it implements the built-in validations: mandatory, minimum length, maximum length, e-mail address, only digits, and comparison.

Name: Stefan Gabos <contact>
Classes: 11 packages by
Country: Romania Romania
Age: 37
All time rank: 301 in Romania Romania
Week rank: 68 Down1 in Romania Romania Equal
Innovation award
Innovation award
Nominee: 1x

Details
Zebra PHP Framework

PHP HTML Form Processor Class

author     Stefan Gabos, ix at nivelzero dot ro
version    1.0 BETA (last revision: December 18, 2006)
copyright  (c) 2006 Stefan Gabos

A PHP class for HTML forms generation and validation. 
It provides an easy and intuitive way of handling both HTML form design (based on templates) and
basic server-side form validation. Custom validation (both server-side and client-side) can also
be implemented very easily. It provides all the basic controls available in an HTML form like
text controls, textarea controls, submit buttons, reset buttons, standard buttons, drop down boxes,
radio buttons, checkboxes, image controls, hidden controls, file upload controls, password controls
and a date picker control.

In order for the date control to work you must also download the PHP Date Picker Class from this
address http://stefangabos.blogspot.com/2006/05/zebra-php-framework-downloads.html and configure
the PHP Form Generation and Validation Class by setting the datePickerPath property to point to
the date picker class

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivs 2.5 License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/2.5/ or send
a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.

For more resources visit {@link http://stefangabos.blogspot.com}
  Files folder image Files  
File Role Description
Files folder imageexamples (2 files)
Files folder imageincludes (17 files)
Files folder imagetemplates (1 directory)
Accessible without login Plain text file ChangeLog Data CHANGELOG file
Plain text file class.htmlform.php Class Main class
Accessible without login Plain text file License Lic. LICENSE file
Accessible without login Plain text file ReadMe Doc. README file

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example.php Example example script
  Accessible without login Plain text file example.xtpl Data example template file

  Files folder image Files  /  includes  
File Role Description
  Plain text file class.htmlform_button.php Class class for button controls
  Plain text file class.htmlform_checkbox.php Class class for checkbox controls
  Plain text file class.htmlform_control.php Class generic class that all the form's controls extend
  Plain text file class.htmlform_date.php Class class for date controls
  Plain text file class.htmlform_file.php Class class for file upload controls
  Plain text file class.htmlform_hidden.php Class class for hidden controls
  Plain text file class.htmlform_image.php Class class for image controls
  Plain text file class.htmlform_label.php Class class for label controls
  Plain text file class.htmlform_password.php Class class for password controls
  Plain text file class.htmlform_radio.php Class class for radio controls
  Plain text file class.htmlform_reset.php Class class for reset controls
  Plain text file class.htmlform_select.php Class class for select controls
  Plain text file class.htmlform_submit.php Class class for submit controls
  Plain text file class.htmlform_text.php Class class for text controls
  Plain text file class.htmlform_textarea.php Class class for textarea controls
  Plain text file class.xtemplate.php Class XTemplate Templating Engine
  Accessible without login Plain text file license.txt Lic. license of the XTemplate templating engine

  Files folder image Files  /  templates  
File Role Description
Files folder imagedefault (5 files)

  Files folder image Files  /  templates  /  default  
File Role Description
  Accessible without login Image file alert.png Icon image for error messages
  Accessible without login Image file calendar_icon.gif Icon icon for the date picker
  Accessible without login Plain text file htmlform_jscript.js Data java script file
  Accessible without login Plain text file style.css Data default stylesheet file
  Accessible without login Plain text file template.xtpl Data default template file

Downloadphpforms-2007-01-03.zip 50KB
Downloadphpforms-2007-01-03.tar.gz 35KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
PHP date picker class Download .zip .tar.gz TO BE ABLE TO USE THE DATE CONTROL Conditional
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,876
This week:0
All time:2,040
This week:1,099Up