Jason Gilmore shows you how to add the HTML_QuickForm2 PEAR package to your PHP development for streamlined HTML forms creation and validation.
http://www.developer.com/features/article.php/3881206/Creating-Complex-Secure-Web-Forms-with-PHP-and-HTMLQuickForm2.htm