| Recommend this page to a friend! |
| All class groups | > | All authors | > | Packages of Thiemo Kreuz (2) | > | Mission progress status | > | Reputation |
|
|||||||||||||||||||||||||||||||
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| ||||
| TM::Apeform creates self repeating web forms, so called "Affenformulare" (German for "ape forms"). If a million apes is typing into the form (that's the "Infinite monkey theorem"), the form is displayed again and again as long as it contains errors. - The usage is not different from the creation, validation and processing of the form values that the user entered. Everything is done in a single script. - The class hides the access to POST and global variables and simply returns the submitted values. - It offers an easy way to handle input errors (checking valid email addresses for example). - It supports all form elements including radio buttons, select boxes, file upload fields and so on. - It provides an own templating system, so you do not have to deal with HTML at all. - It creates labels and access keys according to HTML 4 standard and returns XHTML compatible output. - In addition you can add JavaScript handlers to any form element. TM::Apeform is optimized to be used with the minimum amount of source code. For example, the following script is a full functional form mailer. <?php require_once("Apeform.class.php"); $form = new Apeform(); $message = $form->textarea("Your Message"); $form->submit("Send Email"); $form->display(); if ($form->isValid()) mail("to@example.com", "Subject", $message); ?> |
| |||||||||
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |