Rate this script:  I Love it  /   I Hate it

PEAR:HTML_QuickForm


Code



// use the default method (POST), but change the action URL
$default_form = new HTML_QuickForm('default_form','','/dir/page.php');

// use the default $rel_path as $_SERVER['PHP_SELF']
$get_form = new HTML_QuickForm('get_form','GET');

// set form HTML attributes
$css_form = new HTML_QuickForm('css_form','','','','class="cform" id="css_form"');

// add button with HTML attribute
$css_form->addElement('button', 'close', 'Close','onClick="test();"');
 

 

 
PEAR:HTML_QuickForm scripts | PEAR:HTML_QuickForm snippet | PEAR:HTML_QuickForm example | PEAR:HTML_QuickForm tutorial | PEAR:HTML_QuickForm code