With HTML_QuickForm version 3.1, you can have a consistent look across all your forms and a simplified file upload. This chapter starts with the basics then shows you how to process submitted form data with HTML_QuickForm. (From the book, Essential PHP Tools: Modules, Extensions, and Accelerators, by David Sklar, Apress, 2004, ISBN: 159059280.)
Using HTML Quickform for Form Processing - Header, Link, HTML (Page 9 of 13 )
header
The header element is similar to the static element but only its label is displayed, and it has different formatting. This makes it useful for a header that sets off a section of a form.
These are the valid arguments when creating a header element:
$elementName: The name for HTML_QuickForm’s internal element array
$text: The text to display in the form The following is the sample usage:
$form->addElement('header','episode_4','A New Hope');
The html element inserts unmodified HTML into the rendering of the form. Because HTML_QuickForm displays form elements in table rows, take care to format HTML inserted with this element properly so that it fits into the form’s table.
This is the valid argument when creating an html element:
• $text: The HTML to display in the form The following is the sample usage:
This chapter is from Essential PHP Tools: Modules, Extensions, and Accelerators, by David Sklar, (Apress, 2004, ISBN: 1590592808). Check it out at your favorite bookstore today.