Location: PHPKode > projects > Extended HTML > ehtml/examples/database/index.xml
<HTML>

   <INCLUDE href = "myclass.xml" />

   <DIVER id = "save_myclass">
      <PARAM id = "P1" type = "string" />
      <PARAM id = "P2" type = "integer" />

      <CODE language = "html">
         Save variable into database. <BR />
      </CODE>

      <VAR id = "V" type = "myclass" />

      <SET ref = "V">
         <NEW type = "myclass" persistence = "database" />
      </SET>
      
      <SET ref = "V.V1"><GET ref = "P1" /></SET>
      <SET ref = "V.V2"><GET ref = "P2" /></SET>
   </DIVER>

   <VAR id = "myV1" type = "string" embded = "yes" />
   <VAR id = "myV2" type = "int" embded = "yes" />
   
   V1 : <INPUT ref = "myV1" /> <BR />
   V2 : <INPUT ref = "myV2" /> <BR />

   <BUTTON>
      <EVENT id = "onclick">
         <COLD_DIVE ref = "save_myclass">
            <GET ref = "myV1" /><SEP /><GET ref = "myV2" />
         </COLD_DIVE>
      </EVENT>
   </BUTTON>
   
</HTML>
Return current item: Extended HTML