News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ONLamp.com:
Quick and Clean PHP Forms
September 14, 2007 @ 07:57:00

On O'Reilly's ONLamp.com website today, there's a new tutorial posted walking you through the creation of online forms through the amazingly helpful PEAR HTML_QuickForm package.

As its name suggests, the PHP Extension and Application Repository (PEAR) library called HTML_QuickForm can be used to quickly and cleanly to produce validating HTML forms, relieving the developer of the tedium that often accompanies such tasks. [...] This tutorial presents a basic implementation of HTML_QuickForm to produce a common email contact form and explores ways to get the most from this powerful library.

They introduce the topic by explaining when is a good time to use the package. Now that you're sure you want to use it, they move on to the code portion of the tutorial - the creation of an email form. They define the fields (their labels, types and required status) and show how to dump that array into the HTML_QuickForm class to create the HTML field output. They also add validation rules to check the contents of the field - in this case, ensuring that all of the entries have values and aren't empty.

1 comment voice your opinion now!
pear htmlquickform form tutorial package pear htmlquickform form tutorial package


blog comments powered by Disqus

Similar Posts

Sameer Borate's Blog: Google Translation PHP wrapper

DevShed: Working with Prepared Queries with PDO Objects in PHP 5

C7Y: Step Away From the SuperGlobals! An Introduction to Inspekt

Zend Developer Zone: Creating Data Tables With PEAR Structures_DataGrid

Johannes Schlüter: Sharding PHP with MySQL Fabric


Community Events





Don't see your event here?
Let us know!


framework tips threedevsandamaybe laravel list introduction bugfix deployment series api community podcast code development release conference language interview zendserver symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework