Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.074.852 Times

Pieforms 0.2.2

  Date Added: November 15, 2010  |  Visits: 562

Pieforms

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 downloads)

Pieforms project provides a simple, unified way to create, validate and process forms all with a common look and feel, with support for pluggable elements, renderers and validation rules. Huh? What does all that mean? In simple terms, Pieforms provides a library for building HTML forms. So rather than writing all that HTML yourself for building forms, handling the validation and processing of them in whatever messy, inconsistent way youre doing it currently, you simply define a big hash in your script that describes your form. Pieforms does all of the legwork involved with building the form HTML from this hash (using elements and renderers), and also handles the validation of input using rules. In the general case, after youve defined you form, all you need to do is write a callback function that gets called when the form has been submitted with the data valid according to the rules. Sounds interesting! Show me an example... Okay, so youre writing a simple form that has a standard < input type="text" > and a textarea on it, with a submit button. Youd write a script similar to the following: require_once(pieform.php); $form = array( name => myform, method => get, elements => array( text => array( type => text, title => Text Element, description => A little text box for you rules => array( required => true ) ), textarea => array( type => textarea, title => Textarea, defaultvalue => Some default text for the textarea, rows => 7, cols => 50 ), submit => array( type => submit, value => Submit form! ) ) ); echo pieform($form); function myform_submit($values) { echo "Your submitted values:< br >"; foreach ($values as $key => $value) { echo "$key: $value< br> "; } } You see how easy that is? You didnt have to write any HTML - in fact, the entire definition is in PHP, which means if you make mistakes theyll show up as parse errors, rather than HTML validity errors (which are generally less often checked for). You only called one function to have everything done for you. And you can write a function to handle submission, full well knowing that the text element will always have a value that isnt the empty string. After that, the submnit function is almost academic. You just save whatever you want to the database or whatever, and then the last thing you should do is redirect the user somewhere, perhaps to the same page or perhaps elsewhere. For AJAX forms, all you have to do is add ajaxpost => true in the $form array, and then make your submit function output JSON in the form {error: [false or true], message: some message}, and then exit. Pieforms includes an implementation of json_encode for your convenience. Okay, that looks easy! What else can it do? The best part is that the elements, renderers and rules for your forms are pluggable. For example, you could write a wysiwyg element which behaves like the textarea one, but also includes javascript necessary to turn the textarea into a full WYSIWYG editor. Or you could write an element with two select boxes, arrows to move items left and right, and AJAX searching of the boxes. The possibilities are limitless! You can also write your own rules for reuse later (and change how elements respond to those rules if necessary), and write your own renderers (which handle the HTML surrounding the elements), so you can do things like add a little help icon next to each element with a link to a page explaining how the element works..

Requirements: No special requirements
Platforms: Linux
Keyword: Array Form Function Html Http Internet Pieforms Rules Simple To Create Write
Users rating: 0/10

License: Freeware
PIEFORMS RELATED
Network & Internet  -  HTML Tidy
HTML TIDY is a free utility to fix mistakes made while editing HTML and to automatically tidy up sloppy editing into nicely layed out markup. It also works great on the atrociously hard to read markup generated by specialized HTML editors and...
225.28 KB  
Miscellaneous  -  Living Internet 1.0
Living Internet script allows you to create sites with easy.
 
Development Tools  -  Optical Sensor Image Generation Demo EDIT 1.0
Function target_image_gen use Vx, Vy and Vz to create a movie simulation of a targets aproach. I edit this demo to have differents movies to test a target tracking system I made in simulink.Function target_gen creates a target (11,11) based on...
10 KB  
Games  -  Railroad Train 1.6
Railroad Train is a game so casual it's almost a toy. Just drag to draw tracks and watch the locomotives pick up and drop off multiple cars automatically. Minimalist design and simple rules combine to create a surprisingly complex and engaging...
5.1 MB  
Web Browser Tools  -  Resizeable Form Fields 0.2.1
Resizeable Form Fields is an extension which allows you to resize HTML form fields, including textareas, select boxes and more. Resize HTML form fields, including textareas, select boxes, text fields, and iframes..
4.1 KB  
Network & Internet  -  MkGallery 1.1
MkGallery allows you to create your own gallery for the Internet with HTML 4.0 and CSS support. MkGallery generates an image gallery with thumbnails for the Internet. All pages are HTML 4.0 and CSS compatible. How it works: Enter in a folder...
61.44 KB  
Web Authoring  -  Visual Form Mail 1.6
Visual Form Mail makes it easy to create powerful and secure CGI scripts to process forms on your website. You can create scripts that validate the information entered by users, send custom email messages (such as a "thank you" or confirmation to...
829.44 KB  
Email  -  Contact Form for HTML Mail 2.00.01
This is a Perl script that you can run on your website in order to allow others to send you email through a web interface.Unlike other web to email gateways, Contact Form is designed to thwart spammers. It does not allow email to be sent to...
20.48 KB  
Libraries  -  nrsTable 0.3.3
nrsTable library is a JavaScript script that will allow a developer to create HTML tables from arrays. The tables can be automatically sorted simply by clicking on the heading. A lot of customization can be done for the tables, such as colors,...
31.74 KB  
Network & Internet  -  ASCIIweb 0.90
ASCIIweb is a text-to-HTML formatting system that uses the pre tag to create ASCII art Web pages, either on-the-fly or for static retrieval. Installing ASCIIweb is a snap. Simply download the tarball and unpack it in a directory that is...
31.74 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB