PHP Classes

HTMLForm: Generate XHTML forms with Javascript validation

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 2,373 All time: 1,644 This week: 488Up
Version License PHP version Categories
htmlform 1.0.0GNU General Publi...4.3HTML, Validation


This class can be used to generate XHTML forms with Javascript to perform client side validation.

It can compose a form added all the types of basic HTML form inputs. It also provides convenience functions for adding input for specific purposes, like password and confirmation inputs and password change inputs.

There is a separate class to implement advanced text are inputs.

The class automatically generates the form HTML with Javascript code for browser side validation. It uses a table based layout, using HTML templates built in the class.

The class supports several types of validation based on regular expressions.

Server side validation is also possible with a separate script. That script also takes care of file uploading saving the files to a given directory, eventually generating thumbnails in the case of image file uploads.

Picture of Michele Castellucci
Name: Michele Castellucci <contact>
Classes: 4 packages by
Country: Italy Italy
Age: 39
All time rank: 2067 in Italy Italy
Week rank: 185 Up5 in Italy Italy Up

  Files folder image Files  
File Role Description
HTML file file_HTMLForm.php.html Doc. Documentation of the HTMLForm.php file in Italian
Plain text file Aux. vary methods
HTML file HTMLForm.html Doc. Documentation of the class in Italian
Accessible without login Plain text file HTMLForm.php Class The main class
Plain text file HTMLForm.txt Doc. Documentation in Italian
Plain text file index.php Example Example using the class
Plain text file style.css Data CSS example styles for form inputs
Plain text file users.sql Data Example Mysql table where data is inserted
Plain text file verimage.php Aux. Generate a CAPTCHA image

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:1,644
This week:488Up
 User Ratings  
 All time