n. 1. the inherit form in every MySQL table. 2. the php script that makes it happen.

Support This Project

The Simple 3-Liner Example

















Code

<?PHP

include("Formitable.class.php");
$newForm = new Formitable( mysql_connect("server","user","pass"),"db","table" );
$newForm->hideField("ID"); $newForm->printForm();

?>

MySQL Tables

CREATE TABLE formitable_simple (
  ID tinyint(3) unsigned NOT NULL auto_increment,
  first_name varchar(25) NOT NULL default '',
  last_name varchar(25) NOT NULL default '',
  about_yourself tinytext NOT NULL,
  date_of_birth date NOT NULL default '0000-00-00',
  `what_day_is_it?` enum('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday') NOT NULL default 'Monday',
  PRIMARY KEY  (ID)
) TYPE=MyISAM