/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/test/test4.php
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/test/test4.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Thu Jan 30 03:29:41 2003 UTC revision 1.2 by jonen, Fri Sep 19 22:49:58 2003 UTC
# Line 2  Line 2 
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();

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed