Login   Register  
PHP Classes
elePHPant
Icontem

File: Example2

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jakub Kuritka  >  Leopard Form  >  Example2  >  Download  
File: Example2
Role: Example script
Content type: text/plain
Description: Example of using options argument
Class: Leopard Form
Compose, output and validate HTML forms
Author: By
Last change:
Date: 2011-03-22 01:51
Size: 495 bytes
 

Contents

Class file image Download
<?php
    $form 
= new leopardForm("name""index.php?qm=test&qf=form""POST");
    
$form->addText("Stupid form");
    
/* xample of options
     * In this exaple are options last argument for method. Options are array which will be shown in tag
     * This example shows
     * <input name="blblbjkljbklkl" type="text" value="http://" onClick="someJsHandler()"> 
     */
    
$form->addTextInput("url""Site url""http://",array(rules::URL), array("onClick" => "someJsHandler()");
    
$form->addSubmit("Submit");

?>