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);
?>
This package can be used to show and process database access forms using AJAX.
There is one class that can generate HTML and Javascript to display form fields and have them validated immediately after the field values are changed.
Another class can validated and process the forms submitted via AJAX to update MySQL database records according to mappings also stored in the database.
PLEASE NOTE: As of November 16, 2009 this project's main home has been moved to http://code.google.com/p/php-form-builder-class/. Please check this site for all updates and new features as they will no longer be posted on phpclasses.org.
This class can be used to generate HTML and Javascript for displaying forms.
This project promotes rapid development of forms through an object-oriented PHP structure, eliminates the grunt/repetitive work of writing the html and javascript validation when building forms, reduces human error by using a consistent/tested utility, and incorporate complex elements such as ajax, jquery, google maps, tooltips, captcha, and html web editors quickly and with little effort.
There are 15 example files that provide multiple implementations of the class and will give you a head start in your development. Also, there are currently 3 YouTube videos that provide a more in-depth look various pieces of the project.
This class can be used to display display YouTube music videos with lyrics imported from lyrics sites.
It can search YouTube for music videos of a given band and song. It also searches and imports lyrics from several lyric sites.
The class generates HTML to display the found videos and lyrics as well a form to search for other videos and links to let the user remove the uninteresting videos.
This class builds completely an HTML Form based in a description of the fields, it's ideal to avoid writing one form any new table you have to feed.
This class builds completely an HTML Form based in a description of the fields, it's ideal to avoid writing one form any new table you have to feed. This contains only the form generator. And it´s builded over two classes, one builds the field and the other builds the entiry form.
-----------
Esta clase crea un formulario HTML a partir de una descripción de los campos, es muy flexible y puede crear todo tipo de controles de formulario, se puede adaptar fácilmente para que la descripción de los campos resida en una base de datos en lugar de en un fichero de texto.
This class build an HTML form combo box field from values taken from a MySQL database query results. It supports specifying the initial selected value.