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

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

Serving Software Downloads in 956 Categories, Downloaded 50.056.237 Times

Pieforms 0.2.2

  Date Added: November 15, 2010  |  Visits: 775

Pieforms

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 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
USER REVIEWS
More Reviews or Write Review


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  
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  
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  
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  
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  
Database Tools  -  Publish Table to HTML for MS SQL Server 1.06.42
Publish Table to HTML for MS SQL Server is an application that enables users to create copies of selected data in tables and save it in HTML format. This database export tool supports all modern versions of Microsoft SQL Server First, you have to...
 
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  -  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  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB