2 |
|
|
3 |
include_once("localinc.php"); |
include_once("localinc.php"); |
4 |
|
|
|
function xmp_var_dump($var) { |
|
|
echo "<xmp>"; |
|
|
var_dump( $var ); |
|
|
echo "</xmp>"; |
|
|
} |
|
|
|
|
5 |
$page = new HTMLPageClass("test #4"); |
$page = new HTMLPageClass("test #4"); |
6 |
|
|
7 |
$form_attributes = array( "name" => "myform", |
$form_attributes = array( "name" => "myform", |
8 |
"method" => "GET", |
"method" => "GET", |
9 |
"action" => $PHP_SELF); |
"action" => $_SERVER["PHP_SELF"]); |
10 |
|
|
11 |
$form = new FORMtag( $form_attributes ); |
$form = new FORMtag( $form_attributes ); |
12 |
|
|
13 |
$form->push( form_text("test", "testing",15,10) ); |
$form->add( form_text("test", "testing",15,10) ); |
14 |
$form->push( form_button("test", "testing" ) ); |
$form->add( form_button("test", "testing" ) ); |
15 |
$form->push( form_submit("test", "testing" ) ); |
$form->add( form_submit("test", "testing" ) ); |
16 |
|
|
17 |
$page->push( $form ); |
$page->add( $form ); |
18 |
|
|
19 |
|
|
20 |
print $page->render(); |
print $page->render(); |