PHP Classes

File: Example2

Recommend this page to a friend!
  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: 13 years ago
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");

?>