Documentation | Basic Example | Advanced Example
THANK YOU FOR CHOOSING formAt
PHP & MYSQL Form Generator
This instructions are just for running the examples
To run the examples do the following:
1.- Create a database named form_at_demo
2.- Edit the config.php file
3.- Run the below query into the database and you are done
4.- Then you may access the Basic Usage and Advanced Usage files
CREATE TABLE `car_rental` (
`id` int(11) NOT NULL auto_increment,
`customer_name` varchar(120) NOT NULL default '',
`rent_mode` enum('hourly','daily') NOT NULL default 'hourly',
`credit_card` set('visa','master card') NOT NULL default '',
`service_description` text NOT NULL,
`price` decimal(5,2) NOT NULL default '100.00',
`pickup_time` datetime NOT NULL,
`dropoff_time` datetime NOT NULL,
`car_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `car_id` (`car_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
CREATE TABLE `cars` (
`car_id` int(11) NOT NULL auto_increment,
`car` varchar(60) NOT NULL default '''''',
PRIMARY KEY (`car_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
insert into `cars` values('1','Land Rover'),
('2','Mercedes Benz CLK 280'),
('3','Mustang'),
('4','X Trail');
|
formAt is a php class designed to help web developers to create all kind of HTML form objects based on a mysql database or standalone fields.
• Text or textarea depending on columns length
• Set of checkboxes, radios, select or multiselect based on a table data, enum or set columns with the posibility of filtering information by custom queries
• Aply css styles
• Add Javascript
• Create all kind of HTML form objects
• Obtain column default values or server variables automatically
formAt is fully tested on PHP 5.0.1 and MYSQL 5.0.45
|