PHP Classes

Formitable: Create a submit-ready HTML form from a MySQL table

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-11-20 (13 years ago) RSS 2.0 feedStarStarStarStar 74%Total: 4,485 This week: 1All time: 621 This week: 391Up
Version License Categories
formitable 1.0.0GNU Lesser Genera...HTML, Databases
Description Author

Formitable is a PHP class used to ease the creation of submit-ready HTML forms from MySQL database tables. It analyzes the fields of a given table and outputs the best input type for each (e.g. enum type becomes radio buttons or select, set type becomes checkboxes or multiselect). Data is automatically inserted into the table upon form submission. Features include:
# Output a complete form in a few lines of code
# Validate data via regular expressions and provide custom feedback
# Run an arbitrary function against any value to modify or validate
# Support for normalized data/lookup tables
# Easily retrieve and update existing records
# Customize all aspects of output, integrate forms into your layout
# Full CSS styling
# Output the form from a template to ease custom layouts
# Accessibility support such as labels, fieldsets, legends and more
# Outputs attributes such as MAXLENGTH to reflect your table design
# Easy integration into templating systems

Name: Gamaiel Zavala <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 41849 in United States United States
Week rank: 334 Up29 in United States United States Up


Running the Example Script (Formitable_demo.php):

1) Use phpMyAdmin or the MySQL prompt to execute MySQL_dump.sql on a database of your choice.

2) Open Formitable_demo.php in your favorite text editor and change the username, password and DB vars.

3) Don't change any file names, run the example script.

4) Fill out the form and submit it.

5) If step 4 is successful, run the script again appending "?ID=1" to the URL to retrieve and update your new record.

See the Formitable website  for more help and examples.
  Files folder image Files  
File Role Description
Accessible without login HTML file Documentation.html Doc. full list of methods and properties
Plain text file Formitable.class.php Class Core
Plain text file Formitable_demo.php Example PHP/HTML template.
Plain text file Formitable_style.css Conf. CSS template.
Plain text file MySQL_dump.sql Aux. MySQL demo table dump.
Plain text file README.TXT Doc. Demo instructions

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:621
This week:391Up
User Ratings User Comments (4)
 All time
Straightforward and customizable.
8 years ago (Tom Carnevale)
Not ajax enabled.
12 years ago (Nicolas Chapleau)
I was searching for something like this.
10 years ago (Tareq Hasan)
I recommend
11 years ago (Thales Jacobi)