HTML_QuickForm($form_name,$http_method,$rel_path,$target,$HTML_attributes)
1
2
3 // use the default method (POST), but change the action URL
4 $default_form = new HTML_QuickForm('default_form','','/dir/page.php');
5
6 // use the default $rel_path as $_SERVER['PHP_SELF']
7 $get_form = new HTML_QuickForm('get_form','GET');
8
9 // set form HTML attributes
10 $css_form = new HTML_QuickForm('css_form','','','','class="cform" id="css_form"');
11
12 // add button with HTML attribute
13 $css_form->addElement('button', 'close', 'Close','onClick="test();"');