--- nfo/php/libs/com.newsblob.phphtmllib/test/test4.php 2003/01/30 03:29:41 1.1.1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/test/test4.php 2003/09/19 22:49:58 1.2
@@ -2,25 +2,19 @@
include_once("localinc.php");
-function xmp_var_dump($var) {
- echo "
";
- var_dump( $var );
- echo "";
-}
-
$page = new HTMLPageClass("test #4");
$form_attributes = array( "name" => "myform",
"method" => "GET",
- "action" => $PHP_SELF);
+ "action" => $_SERVER["PHP_SELF"]);
$form = new FORMtag( $form_attributes );
-$form->push( form_text("test", "testing",15,10) );
-$form->push( form_button("test", "testing" ) );
-$form->push( form_submit("test", "testing" ) );
+$form->add( form_text("test", "testing",15,10) );
+$form->add( form_button("test", "testing" ) );
+$form->add( form_submit("test", "testing" ) );
-$page->push( $form );
+$page->add( $form );
print $page->render();