/kunden/homepages/9/d13546020/htdocs/projekte/form/tests/form_defaults

get()
        
                    
        
print_r($x)
        
          form Object
(
    [defaults] => Array
        (
            [textsize] => 1
            [textmaxlength] => 2
            [filesize] => 3
            [imageborder] => 4
            [selectintro] => Array
                (
                    [5] => intro
                )

            [selectintro_e] => Don't select me
            [cssid] => id
            [cssclass] => css class
            [cssstyle] => style
        )

    [elements] => Array
        (
        )

    [element_names] => Array
        (
        )

    [element_prefix] => elementnameprefix
    [validation_flags] => Array
        (
        )

    [validation_msg] => 
    [hidden_elements] => Array
        (
        )

    [radio_elements] => Array
        (
        )

    [js_name] => jsname_test
    [js_mode] => strong
    [js_error_prefix] => There're errors in the form: \n\n
    [js_error_postfix] => \n\nPlease correct the input.
    [method] => GET
    [flag_contains_file] => 
    [action] => action_test
    [target] => name_test
    [additional_html] => Added in front of the closing form tag
    [CR_HTML] => 

    [CR_JS] => 

    [exceptions] => 
)
          
        
PHP Source <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>Form Test</title>
</head>

<body>

  <?php
    
// whatever you need...
    
define("FORM_INCLUDE_DIR"$DOCUMENT_ROOT "/php/form/");
    
define("FILE"$DOCUMENT_ROOT "/projekte/form/tests/form_defaults");
  
    include_once(
FORM_INCLUDE_DIR "form.inc");
    include_once(
FORM_INCLUDE_DIR "form_xmlfactory.inc");
    
    
$x = new form_xmlfactory(FILE ".xml");
  
?>
  <table cellspacing="2" cellpadding="4">
    <tr>
      <td align="left" valign="top" bgcolor="#C0C0C0" colspan="2"><h3><?php print FILE?></h3></td>
    </tr>
    <tr>
      <td align="left" valign="top">get()</td>
      <td align="left" valign="top" >
        <pre>
        
          <?php
            $x
->get();
          
?>
          
        </pre>
      </td>
    </tr>
    <tr>
      <td align="left" valign="top">print_r($x)</td>
      <td  align="left" valign="top">
        <pre>
        
          <?php
            print_r
($x);
          
?>
          
        </pre>
      </td>
    </tr>
    <tr>
      <td align="left" valign="top">PHP Source</td>
      <td  align="left" valign="top">
        <?php highlight_string(implode(""file(FILE ".php"))); ?>
      </td>
    </tr>
    <tr>
      <td align="left" valign="top">XML File</td>
      <td  align="left" valign="top">
       <pre>
          <?php print str_replace("\t""  "str_replace("<" "&lt;"implode(""file(FILE ".xml")))); ?>
        </pre>
      </td>
    </tr>
  
  </table>

</body>
</html>
XML File
          <?xml version="1.0" encoding="UTF-8"?>
<form jsname="jsname_test" action="action_test" method="GET"  name="name_test" target="target_test">

  <additionalhtml>
    Added in front of the closing form tag
  </additionalhtml>
  
  <defaults>
    <text size="1" maxlength="2"/>
    <file size="3"/>
    <image border="4"/>
    <intros errormsg = "Don't select me">
      <intro value="5">intro</intro>
    </intros>
    <css class="css class" id="id">style</css>
  </defaults>
  
  <elements nameprefix="elementnameprefix"/>
  
</form>