PHP Classes
elePHPant
Icontem

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 (9 years ago) RSS 2.0 feedStarStarStarStar 74%Total: 4,462 This week: 2All time: 608 This week: 591Up
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

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  
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  
 0%
Total:4,462
This week:2
All time:608
This week:591Up
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:146
 
Straightforward and customizable.
5 years ago (Tom Carnevale)
80%StarStarStarStarStar
Not ajax enabled.
8 years ago (Nicolas Chapleau)
80%StarStarStarStarStar
I was searching for something like this.
7 years ago (Tareq Hasan)
80%StarStarStarStarStar
I recommend
8 years ago (Thales Jacobi)
80%StarStarStarStarStar