Usage

To use this package you just need to do something like this:

<?php
require_once 'HTML/QuickForm.php';
require_once 
'HTML/QuickForm/DHTMLRulesTableless.php';
require_once 
'HTML/QuickForm/Renderer/Tableless.php';

$form = new HTML_QuickForm_DHTMLRulesTableless(...);
$renderer = new HTML_QuickForm_Renderer_Tableless();

// usual code, e.g. new form fields, rules, ...

$form->accept($renderer);
echo 
$renderer->toHtml();
?>

As already said for the tableless renderer, you need to add the following line to your code to get full XHTML validity:

<?php
$form
->removeAttribute('name');
?>

$form can be used the same way as with the standard HTML_QuickForm package, there is no difference.

To enable validation on "onBlur" and "onChange" events, you need to add the following line before the $form->accept($renderer); call:

<?php
$form
->getValidationScript();
?>
HTML_QuickForm_DHTMLRulesTableless (Previous) HTML_QuickForm_advmultiselect (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.