PHP Classes

File: formexampl.php

Recommend this page to a friend!
  Classes of Stephan Maat   form create class   formexampl.php   Download  
File: formexampl.php
Role: ???
Content type: text/plain
Description: exampl
Class: form create class
Author: By
Last change:
Date: 22 years ago
Size: 913 bytes
 

Contents

Class file image Download
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; ?>