The PEAR::HTML_QuickForm package provides methods for creating, validating and processing HTML forms.