Login   Register  
PHP Classes
elePHPant
Icontem

TM::Apeform

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Thiemo Mättig
Name: Thiemo Mättig <e-mail contact>
Packages: 2 Browse all classes by Thiemo Mättig Browse all classes by
Country: Germany Germany - PHP jobs in Germany
Age: 36
All time rank: 28113 in Germany Germany
Week rank: 1433 Down76 in Germany Germany Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


  Detailed description   Download .zip .tar.gz  
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);
?>

  Classes of Thiemo Mättig  >  TM::Apeform  >  Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: TM::Apeform
Base name: apeform
Description: A very abstract web form builder and processor
Version: -
PHP version: 4.0.6
License: Free for non-commercial use
All time users: 7193 users
All time rank: 223
Week users: 0 users
Week rank: 2045 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Dependents   Applications   Related links   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image Validation Validation algorithms View top rated classes

  Files folder image Screenshots  
CSS templated form
File Role Description
Accessible without login Image file example_templates.png Screen CSS templated form
Accessible without login Image file example_advertisement.png Screen Small advertisement form
Accessible without login Image file example_QuickForm_groups.png Screen Grouped form elements


  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (88.2%)
Good (88.2%)
Good (81.6%)
Good (88.2%)
Sufficient (75.8%)
-
Sufficient (77.4%)
27
Month:
Not yet rated by the users

  Packages that need this class  
Class Dependency Why it is needed
TM::MyCSV
Conditional
Only for the Administrator class and script, to display all the forms.

  Applications that use this class  
Link Description
Kommunikationsplattform "offen-siv" All forms in this project are done using TM::Apeform.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Official website of the TM::Apeform class Detailed description and examples for the class on my personal website

  Files folder image Files  
File Role Description
Plain text file Apeform.class.php Class Main class
Accessible without login HTML file Apeform_manual.html Doc. Manual and API reference
Accessible without login Plain text file ChangeLog.txt Doc. Change log
Accessible without login Plain text file example_accesskeys.php Example How to automatically create accesskey attributes
Accessible without login Plain text file example_advertisement.class.php Class Extended class with different templates
Accessible without login Plain text file example_advertisement.php Example Small advertisement form with an image upload
Accessible without login Plain text file example_colors.php Example Ideas for selecting a color in a form
Accessible without login Plain text file example_elements.class.php Class Extended class with special form elements
Accessible without login Plain text file example_elements.php Example How to use the special elements from the extended class
Accessible without login Plain text file example_email.php Example Small form mailer with error checking
Accessible without login Plain text file example_multiform.php Example How to use multiple forms on a single page
Accessible without login Plain text file example_multipage.php Example How to split a form into multiple pages
Accessible without login Plain text file example_multipage2.php Example How to split a form into multiple pages
Accessible without login Plain text file example_multiuse.php Example How to use a form multiple times
Accessible without login Plain text file example_QuickForm_elements.php Example Comparison with the features of PEAR::HTML_QuickForm
Accessible without login Plain text file example_QuickForm_groups.php Example Comparison with the features of PEAR::HTML_QuickForm
Accessible without login Plain text file example_regex_callback.php Example Extended validation methods with callbacks and regular expressions
Accessible without login Plain text file example_templates.php Example How to use different HTML and CSS templates
Accessible without login Plain text file example_tiny.php Example Basic textarea example
Accessible without login Plain text file example_tinymce.php Example How to use TinyMCE instead of a textarea
Accessible without login Plain text file test.php Test PHPUnit 1 unit test

Download all files: apeform.tar.gz apeform.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.