PHPlib
Friday, July 25, 2008  
download | documentation | faq | changelog | resources 


search for in the  


previousTemplate Examples
Customizing OOH Formsnext

Last updated: Thu, 04 Jul 2002
view this page in Plain HTML

The form class (sometimes called OOH Forms) is a convenience library for dealing with html forms. It provides Javascript and server-side form validation, and is customizable and extensible.

The OOH Forms library consists of five files: oohforms.inc of_checkbox.inc of_radio.inc of_select.inc of_text.inc of_textarea.inc. oohforms.inc automatically includes the others. You may wish to modify this so you can manually include the files for just the form elements you use. Or you may wish to cut and paste the contents of the element files into oohforms.inc to save the overhead of multiple includes. Determining the appropriate configuration of the files for your site is left an exercise for the reader; for most purposes require("oohforms.inc") will suffice.

In general, the structure of a page that uses oohforms is as follows:

There are obviously many variations on this theme, but that covers the basics. Specific methods are documented below.

add_element is used to define the attributes of a particular form element so that the other class methods can use and manipulate it properly. add_element takes exactly one argument: an associate array whose key value pairs are used to define the form element type and it's various attributes. Some of these attributes correspond to html attributes, while others are needed for the value added features of oohforms. The attributes and the syntax and semantics of the values they take are documented below; note that not all element types use all of the attributes

Examples:


User Contributed Notes
Object Oriented HTML Forms
add a note about notes
There are no user contributed notes for this page.


previousTemplate Examples
Customizing OOH Formsnext

Last updated: Thu, 04 Jul 2002



 

PHP Copyright © 2001 The PHPlib Group
All rights reserved.
Last updated: Thu Jul 4 15:39:08 2002 IST
Hosted and Maintained by http://www.sanisoft.com