| 1 | <?php | 
| 2 |  | 
| 3 | include_once("localinc.php"); | 
| 4 |  | 
| 5 | $page = new HTMLPageClass("test.php"); | 
| 6 |  | 
| 7 | $options = array("bunz" => "hole", | 
| 8 | "foo" => "bar", | 
| 9 | "hello" => "world"); | 
| 10 | $form = new FORMtag(array("name"=> "testform", | 
| 11 | "method" => "GET", | 
| 12 | "action" => $PHP_SELF)); | 
| 13 |  | 
| 14 |  | 
| 15 | $form->add( form_select("test", $options, "foo") ); | 
| 16 |  | 
| 17 | $textarea = form_textarea( "this is a long ass test" ); | 
| 18 | $textarea->set_tag_attributes( array("cols" => "40", | 
| 19 | "rows" => "20") ); | 
| 20 |  | 
| 21 | $form->add( html_br(), $textarea ); | 
| 22 |  | 
| 23 | $page->add( $form ); | 
| 24 |  | 
| 25 | print $page->render(); | 
| 26 | ?> |