Methods

Add() Add a form element

Add($name) : void

Parameters

$name

CheckFormValues()

CheckFormValues() : void

Define() Define properties of the form or the elements

Define($which, $value) : void
var

Which property to define

var

Values of the property

Parameters

$which

$value

Constructor Function

Form() 

Form::generate()

Generate($template) : void

Parameters

$template

string Path/Filename of the template to use

GetFormValues() Extract the Form Data from the $_POST or $_GET global arrays

GetFormValues() : void

Passed() Checks if the form passed

Passed() : bool

Returns

boolTRUE: Form passed without errors, FALSE: Errors

SetDefault() Add a default value

SetDefault($name, $value) : void

Parameters

$name

$value

 Properties

 

$action : string
 

$counter : int
 

$debug : bool
 

$default : array
 

$enctype : string
 

$fields : array
 

$isSend : bool
 

$method : string
 

$passed : bool
 

$target : string