PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 74%Total: 4,501 This week: 1All time: 625 This week: 35Up
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

Picture of Gamaiel Zavala
Name: Gamaiel Zavala <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 42352 in United States United States
Week rank: 41 Up6 in United States United States Up

Details

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. http://formitable.sourceforge.net/

  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:4,501
This week:1
All time:625
This week:35Up
User Ratings User Comments (4)
 All time
Utility:97%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:86%StarStarStarStarStar
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:74%StarStarStarStar
Rank:109
 
Straightforward and customizable.
13 years ago (Tom Carnevale)
80%StarStarStarStarStar
Not ajax enabled.
16 years ago (Nicolas Chapleau)
80%StarStarStarStarStar
I was searching for something like this.
15 years ago (Tareq Hasan)
80%StarStarStarStarStar
I recommend
16 years ago (Thales Jacobi)
80%StarStarStarStarStar