PHP Classes

File: Example2

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 4 years ago
Size: 495 bytes


Class file image Download
= 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()");