|
|
|
|
|
|
Arguments:
Name |
Description |
$html |
The html which you want to include in the form |
Description:
Add some HTML into the form. This HTML will not be inserted into a table-row!
Example
<?php
// include the form
include("FH3/class.FormHandler.php");
// create a new formhandler object
$form = new FormHandler();
// simple field
$form -> textField("Name", "name", FH_STRING);
// addHTML!
$form -> addHTML(
" <tr>\n".
" <td colspan='3'><hr size='1' /></td>\n".
" </tr>\n"
);
// submit button
$form -> submitButton("Save");
// set the handler
$form -> onCorrect("doRun");
// flush it...
$form -> flush();
// the handler
function doRun( $data )
{
// do something here with the data...
echo $data['name'];
}
?>
|
Preview image
Latest change: 05 March 10 / 08:43
Comments
|
|
|
|