Location: PHPKode > scripts > form-o-mat > form-o-mat/form-o-mat.exemple.php
<?php
	error_reporting(E_ALL);
	require( 'form-o-mat.class.php' );
	$test = new form_o_mat;
	$test->hide = TRUE;
	$test->id = "aquarium";
	$test->caption = "blubb... blubb...";
	$test->insert_object( 'blub1', 'blubber', '8-10', 'text', '30' );
	$test->insert_object( 'blub2', 'blubber', FALSE, 'file' );
	$test->insert_object( 'blub3', 'blubber', TRUE, 'textarea', '30x10' );
	$test->insert_object_group( 'blub4', 'blubber', array('a','b','c'), TRUE, 'select' );
	$test->insert_object_group( 'blub5', 'blubber', array('a','b','c'), TRUE, 'radio' );
	$test->insert_object_group( 'blub6', 'blubber', array('a','b','c'), '2', 'check' );
	echo $test->dump_form();
?>
Return current item: form-o-mat