PHP Classes
elePHPant
Icontem

File: form-o-mat.exemple.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of codemonk  >  form-o-mat  >  form-o-mat.exemple.php  >  Download  
File: form-o-mat.exemple.php
Role: Example script
Content type: text/plain
Description: class exemple
Class: form-o-mat
Generate and validate Web forms with few functions
Author: By
Last change: fixed file name
Date: 10 years ago
Size: 678 bytes
 

Contents

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