Location: PHPKode > scripts > form create class > form-create-class/formexampl.php
	require( 'classes/class.table.php' ); 
	require( 'classes/form.class.php' ); 
	$form = new Form( );
	$form->form_begin( 0, 'file.php' );
	$form->add_text( 0, 'voornaam', '', 15, 21 );
	$form->add_text( 0, 'achternaam', '', 15, 21 );
	$form->add_radio( 0, 'geslacht', array( 'm' => 'Man', 'v' => 'Vrouw' , 'h' => 'Hermafrodiet', 'g' => 'Geen' ), 1 );
	$form->add_select( 0, 'intresse[]', array( 0 => 'kies 1 intresse', 1 => 'baseball', 2 => 'football', 3 => 'golf' ), 0, 'false', 0 );
	$form->add_textarea( 0, 'opmerkingen', 12, 4, '', 'virtual' );
	$form->add_password( 0, 'wachtwoord', '', 15, 21 );
	$form->add_file( 0, 'bestand', '', 'image/gif', 15);
	$form->add_hidden( 0, 'RN', 40313 );
	$form->add_hidden( 0, 'lng', 'nl' );
	$form->add_submitreset( array( 'submit', 'reset' ), array( 'verstuur', 'opnieuw' ) );
	$form->submit_handler( );
	$form = $form->CompileTable ( ); 
	echo $form;
?>
Return current item: form create class