Example #1
0
 public static function form($action = '.', $method = 'post', $onsubmit = '')
 {
     $form = new HTMLObj('form', '');
     $args = func_get_args();
     if (count($args) > 3) {
         $args = array_slice($args, 3);
         $form->html(implode('', $args));
     }
     return $form->action($action)->method($method)->onsubmit($onsubmit);
 }