Login   Register  
PHP Classes
elePHPant
Icontem

HtmlForm PHP 5: Validate HTML forms composed programmatically

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   Screenshots Screenshots   View files View files (105)   DownloadInstall with Composer Download .zip   Reputation   Support forum (10)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-07-21 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 561 This week: 1All time: 4,969 This week: 1,398Up
Version License PHP version Categories  
html-form-php-5 1.0GNU General Public Lice...5.2.4HTML, PHP 5
Description Author  

This package can create, validate and process HTML forms composed programmatically.

It provides many classes that abstract most types of HTML elements that can be used in HTML forms by providing a fluent interface that allows defining many aspects of each element, including validation rules.

The main forms class can render the form automatically and return the composed form HTML as a string.

I can optionally generate JavaScript to validate the forms on the browser side before submitting the forms.

The class can also check if the form has been submitted and validate all fields at once.

Picture of Sebastian Schlapkohl
Name: Sebastian Schlapkohl <contact>
Classes: 1 package by
Country: Germany Germany
Age: 31
All time rank: 2819172 in Germany Germany
Week rank: 1078 Up47 in Germany Germany Up

Screenshots  
  • screen2.png
  • screen1.png
  Files folder image Files  
File Role Description
Files folder imageapidoc (18 files, 6 directories)
Files folder imagehtmlform (23 files, 3 directories)
Files folder imageimg (2 files)
Files folder imagejs (1 file)
Plain text file index.php Example Example script

  Files folder image Files  /  apidoc  
File Role Description
Files folder imageform (2 files)
Files folder imageformdata (2 files)
Files folder imageformelements (2 files, 4 directories)
Files folder imagemedia (3 files)
Files folder imagetools (2 files)
Files folder imagevalidation (2 files)
  HTML file classtrees_form.html Doc. Documentation
  HTML file classtrees_formdata.html Doc. Documentation
  HTML file classtrees_formelements.html Doc. Documentation
  HTML file classtrees_tools.html Doc. Documentation
  HTML file classtrees_validation.html Doc. Documentation
  HTML file elementindex.html Doc. Documentation
  HTML file elementindex_form.html Doc. Documentation
  HTML file elementindex_formdata.html Doc. Documentation
  HTML file elementindex_formelements.html Doc. Documentation
  HTML file elementindex_tools.html Doc. Documentation
  HTML file elementindex_validation.html Doc. Documentation
  HTML file errors.html Doc. Documentation
  HTML file index.html Doc. Documentation
  HTML file li_form.html Doc. Documentation
  HTML file li_formdata.html Doc. Documentation
  HTML file li_formelements.html Doc. Documentation
  HTML file li_tools.html Doc. Documentation
  HTML file li_validation.html Doc. Documentation

  Files folder image Files  /  apidoc  /  form  
File Role Description
  HTML file HtmlForm.html Doc. Documentation
  HTML file _HtmlForm.class.php.html Doc. Documentation

  Files folder image Files  /  apidoc  /  formdata  
File Role Description
  HTML file FormValueSet.html Doc. Documentation
  HTML file _HtmlForm.FormValueSet.class.php.html Doc. Documentation

  Files folder image Files  /  apidoc  /  formelements  
File Role Description
Files folder imagecontainer-widgets (4 files)
Files folder imagecontrol-widgets (8 files)
Files folder imagespecial-widgets (4 files)
Files folder imagevalue-widgets (20 files)
  HTML file FormElement.html Doc. Documentation
  HTML file _HtmlForm.FormElement.absclass.php.html Doc. Documentation

  Files folder image Files  /  apidoc  /  formelements  /  container-widgets  
File Role Description
  HTML file AlignBlock.html Doc. Documentation
  HTML file FieldSet.html Doc. Documentation
  HTML file _HtmlForm.FormElem...lock.class.php.html Doc.
  HTML file _HtmlForm.FormElem...dSet.class.php.html Doc.

  Files folder image Files  /  apidoc  /  formelements  /  control-widgets  
File Role Description
  HTML file InputButton.html Doc. Documentation
  HTML file InputImage.html Doc. Documentation
  HTML file InputReset.html Doc. Documentation
  HTML file InputSubmit.html Doc. Documentation
  HTML file _HtmlForm.FormElem...tton.class.php.html Doc.
  HTML file _HtmlForm.FormElem...mage.class.php.html Doc.
  HTML file _HtmlForm.FormElem...eset.class.php.html Doc.
  HTML file _HtmlForm.FormElem...bmit.class.php.html Doc.

  Files folder image Files  /  apidoc  /  formelements  /  special-widgets  
File Role Description
  HTML file CustomHtml.html Doc. Documentation
  HTML file Label.html Doc. Documentation
  HTML file _HtmlForm.FormElem...Html.class.php.html Doc.
  HTML file _HtmlForm.FormElem...abel.class.php.html Doc.

  Files folder image Files  /  apidoc  /  formelements  /  value-widgets  
File Role Description
  HTML file InputCheckbox.html Doc. Documentation
  HTML file InputFile.html Doc. Documentation
  HTML file InputHidden.html Doc. Documentation
  HTML file InputPassword.html Doc. Documentation
  HTML file InputRadio.html Doc. Documentation
  HTML file InputText.html Doc. Documentation
  HTML file JsDateTime.html Doc. Documentation
  HTML file Select.html Doc. Documentation
  HTML file SelectList.html Doc. - updated api doc to reflect newest widget selectlist
  HTML file TextArea.html Doc. Documentation
  HTML file _HtmlForm.FormElem...kbox.class.php.html Doc.
  HTML file _HtmlForm.FormElem...File.class.php.html Doc.
  HTML file _HtmlForm.FormElem...dden.class.php.html Doc.
  HTML file _HtmlForm.FormElem...word.class.php.html Doc.
  HTML file _HtmlForm.FormElem...adio.class.php.html Doc.
  HTML file _HtmlForm.FormElem...Text.class.php.html Doc.
  HTML file _HtmlForm.FormElem...Time.class.php.html Doc.
  HTML file _HtmlForm.FormElem...lect.class.php.html Doc.
  HTML file _HtmlForm.FormElem...List.class.php.html Doc. - updated api doc to reflect newest widget selectlist
  HTML file _HtmlForm.FormElem...Area.class.php.html Doc.

  Files folder image Files  /  apidoc  /  media  
File Role Description
  Image file background.png Icon Icon image
  Image file empty.png Icon Icon image
  Plain text file style.css Data Auxiliary data

  Files folder image Files  /  apidoc  /  tools  
File Role Description
  HTML file HtmlFormTools.html Doc. Documentation
  HTML file _HtmlFormTools.class.php.html Doc.

  Files folder image Files  /  apidoc  /  validation  
File Role Description
  HTML file FormValidator.html Doc. Documentation
  HTML file _HtmlForm.FormValidator.class.php.html Doc. Documentation

  Files folder image Files  /  htmlform  
File Role Description
Files folder imageimg (8 files)
Files folder imagejs (1 file)
Files folder imagemessages (2 files)
  Plain text file HtmlForm.class.php Class Class source
  Plain text file HtmlForm.FormElement.absclass.php Class Class source
  Plain text file HtmlForm.FormEleme...lignBlock.class.php Class
  Plain text file HtmlForm.FormEleme...ustomHtml.class.php Class
  Plain text file HtmlForm.FormElement.FieldSet.class.php Class
  Plain text file HtmlForm.FormEleme...putButton.class.php Class
  Plain text file HtmlForm.FormEleme...tCheckbox.class.php Class
  Plain text file HtmlForm.FormElement.InputFile.class.php Class
  Plain text file HtmlForm.FormEleme...putHidden.class.php Class
  Plain text file HtmlForm.FormEleme...nputImage.class.php Class
  Plain text file HtmlForm.FormEleme...tPassword.class.php Class
  Plain text file HtmlForm.FormEleme...nputRadio.class.php Class
  Plain text file HtmlForm.FormEleme...nputReset.class.php Class
  Plain text file HtmlForm.FormEleme...putSubmit.class.php Class
  Plain text file HtmlForm.FormElement.InputText.class.php Class
  Plain text file HtmlForm.FormEleme...sDateTime.class.php Class
  Plain text file HtmlForm.FormElement.Label.class.php Class
  Plain text file HtmlForm.FormElement.Select.class.php Class
  Plain text file HtmlForm.FormEleme...electList.class.php Class - added SelectList a reskin of single and multi selects displayed as either a radio or checkbox list, which should make handling large lists much more smoothly - the first and the last cell of a form now have corresponding classes to apply layout surrounding a form easier
  Plain text file HtmlForm.FormElement.TextArea.class.php Class
  Plain text file HtmlForm.FormValidator.class.php Class Class source
  Plain text file HtmlForm.FormValueSet.class.php Class Class source
  Plain text file HtmlFormTools.class.php Class

  Files folder image Files  /  htmlform  /  img  
File Role Description
  Image file cal.gif Icon Icon image
  Image file cal_close.gif Icon Icon image
  Image file cal_fastforward.gif Icon Icon image
  Image file cal_fastreverse.gif Icon Icon image
  Image file cal_forward.gif Icon Icon image
  Image file cal_minus.gif Icon Icon image
  Image file cal_plus.gif Icon Icon image
  Image file cal_reverse.gif Icon Icon image

  Files folder image Files  /  htmlform  /  js  
File Role Description
  Plain text file datetimepicker_css.js Data Auxiliary data

  Files folder image Files  /  htmlform  /  messages  
File Role Description
  Plain text file english.inc.php Conf. Configuration script
  Plain text file german.inc.php Conf. Configuration script

  Files folder image Files  /  img  
File Role Description
  Image file htmlform_logo.png Data Auxiliary data
  Image file submit.png Icon Icon image

  Files folder image Files  /  js  
File Role Description
  Plain text file jquery.min.js Data

 Version Control Unique User Downloads Download Rankings  
 98%Total:561All time:4,969
 This week:1This week:1,398Up