PHP Classes

HTML Form Generator: Compose and generate HTML forms programmatically

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 924 All time: 3,859 This week: 455Up
Version License PHP version Categories
html-form-generator 1.0GNU General Publi...5.0HTML, PHP 5


This class can be used to compose and generate HTML forms programmatically.

It comes with a main form class and several classes that abstract the different types of HTML elements, like: text, password, hidden, select, radio, checkbox, label and submit buttons.

The main class can add one or more elements to the composition of the form and then generate the HTML for the form and all the elements. The generated form is returned as a single string.

Picture of Lasantha Samarakoon
Name: Lasantha Samarakoon <contact>
Classes: 3 packages by
Country: Sri Lanka Sri Lanka
Age: 37
All time rank: 14392 in Sri Lanka Sri Lanka
Week rank: 258 Up1 in Sri Lanka Sri Lanka Up

  Files folder image Files  
File Role Description
Plain text file Class main file
Plain text file Class base classes
Plain text file Class exception classes
Accessible without login Plain text file test.php Test testing script and the documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,859
This week:455Up