PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm2

PHP5 rewrite of HTML_QuickForm package

Download latest release 2.4.0 (there is a newer Composer installable version)

License: BSD 3-Clause License

Description

PHP5 rewrite of HTML_QuickForm and HTML_QuickForm_Controller packages.

This package provides methods to create, validate and render HTML forms.

Features:
* Supports all form elements defined by HTML standard, provides several
custom elements
* Server-side and client-side validation, several common rules provided
* Multipage forms (tabbed forms and wizards)
* Pluggable elements, rules, renderers and renderer plugins

Major advantages over PHP4 version:
* Most of the package's functionality is covered by unit tests
* DOM-like API for building the form structure, new streamlined API for
elements' values handling
* Default rendering without tables (inspired by
HTML_QuickForm_Renderer_Tableless)
* Renderer plugins for elements with complex rendering needs
* Ability to chain validation rules with 'and' and 'or'
* Client-side validation can run "live" on changing the form fields,
validation errors are displayed near the fields instead of in alert()

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#1283ClosedReq2004-04-26Feature request: Optgroup support
#1681ClosedReq2004-06-19Better access to grouped elements
#2535ClosedReq2004-10-15Getting a list of element names and their rules
#2746Wont fixReq2004-11-13"in array" element rule
#3980No FeedbackReq2005-03-28spin button element
#4061ClosedReq2005-04-05Support max/min hours in time controls
#4137ClosedReq2005-04-13Add form-wide functions for unfreeze and setPersistantFreeze
#4268Wont fixReq2005-05-03Use of strspn() and strcspn() functions
#4534ClosedReq2005-06-06QuickForm + "soft" rules.
#4564ClosedReq2005-06-09Checkboxes can't be created with arbitrary value
#4697Wont fixReq2005-06-28addRule() - word count
#4728ClosedReq2005-07-02Range rule update
#4793ClosedReq2005-07-11misspelled HTML_QuickForm_Element method
#5128Wont fixReq2005-08-17html attribute access to labels
#5308ClosedReq2005-09-06Javascript Validation with Ajax
#5446Wont fixReq2005-09-18updateElementAttr for Groups
#5558ClosedReq2005-09-29Use setlocale to determine language
#5957ClosedReq2005-11-14date Element: offer only a range of months
#6186DuplicateReq2005-12-07Support for updating every form element's attributes
#6421ClosedReq2006-01-05Allow control of all elements' persist freeze through freeze()
#6802ClosedReq3.2.52006-02-16added rule -> heirselect
#7432ClosedReq3.2.52006-04-20Client side validation
#8060Wont fixReq3.2.62006-06-28HTML_QuickForm_select -> loadDbResult Support MDB2
#8318Wont fixReq3.2.62006-07-28new feature using validate_ptBR
#8626ClosedReq3.2.62006-09-03new subtype: ximage for <img ....>
#8678ClosedReq2006-09-12Add multiple select with two list
#9097ClosedReq2006-10-19option to execute rules even when element values are empty
#9116ClosedReqCVS2006-10-20Default rendering - XHTML/CSS instead of Tables
#9922Wont fixReqCVS2007-01-22YUI Autocomplete form element type
#9942ClosedReq2007-01-25Implement a setSeperator()-method
#10193Wont fixReq2007-02-26[patch] add addOptionalElement() to HTML_Quickform
#10383ClosedReq2007-03-15Unable to remove options from selects
#10461Wont fixReq2007-03-22Redo the way the validation is done
#10617ClosedReq2007-04-04Filter optional parameters
#11027Wont fixReq0.1.02007-05-13Set selected in select element constructor
#12045Wont fixBug0.1.02007-09-13Constructor not backwards compatible with HTML_QuickForm
#12065FeedbackBug0.1.02007-09-17Disabled (frozen) elements not accessible
#12610ClosedBug0.2.02007-12-04rule required for multiple select
#12953BogusBug0.2.02008-01-21Can't install
#13042Wont fixReq0.2.02008-02-02Don't force xhtml-style empty tags.
#13043DuplicateReq0.2.02008-02-02Don't force xhtml-style empty tags.
#13044DuplicateReq0.2.02008-02-02Don't force xhtml-style empty tags.
#13045DuplicateReq0.2.02008-02-02Don't force xhtml-style empty tags.
#13088ClosedReq0.2.02008-02-08using ajax i can't validate
#13634ClosedBugCVS2008-04-09HTML_QuickForm2::__toString() must be compatible with that of HTML_Common2::__t
#14110ClosedBug0.2.02008-06-09Container.php broken
#14905DuplicateReq2008-10-28applyFilter() should get third parameter
#14928ClosedBug0.2.02008-10-31Default container __toString() broken
#15076BogusBug0.2.02008-11-18Google Apps Issue
#15077BogusBug0.2.02008-11-18Google Apps Issue
#15560DuplicateBug0.2.02009-01-08__toString() must not throw an exception
#15618OpenReqCVS2009-01-12[patch] support arrayAccess interface
#15619Wont fixReqCVS2009-01-12[patch] make rules for containers working
#15708ClosedBug0.2.02009-01-21setValue() discuntional
#15856BogusBugCVS2009-02-01Uploading files fail in IE7
#16234DuplicateBug2009-05-17Fatal error: Call to protected method
#16806ClosedReq0.3.02009-11-19allow multiple checkboxes
#16807ClosedReq0.3.02009-11-19Input type 'file' should check for POST form
#16816ClosedBug0.3.02009-11-20failure to check array element being set
#16906AssignedReq0.3.02009-12-15no email validation like HTML_QuickForm_Rule_Email
#16933BogusReq0.3.02009-12-21Using setValue() on button elements
#16934BogusDoc0.3.02009-12-21Latest documentation link goes to old docs
#16937ClosedReq0.3.02009-12-21Array Renderer: fieldset and group do not have the type property
#16974DuplicateReq0.3.02010-01-06Possibility to bypass "intrinsic validation" for HTML_QuickForm2_Element_Select
#17217ClosedReq0.4.02010-03-12W3C Validation : trackSubmit field is not valid
#17517BogusReqSVN2010-06-23Change requires/includes to use absolute paths
#17557ClosedBugSVN2010-07-03Call-time pass-by-reference is deprecated
#17568Wont fixReqSVN2010-07-06loadClass()
#17575BogusReq0.4.02010-07-08"On empty elements validation" - validation must be more flexibility.
#17576ClosedBugSVN2010-07-09Call container rules after element rules
#17842OpenReq0.4.02010-09-03Support for HTML5 form input methods
#18133ClosedReq0.5.02010-12-22Message parameter for rule
#18182ClosedBug0.5.02011-01-10Problem with quotes in preg_replace
#18330BogusBug0.5.02011-03-02removeRule
#18341ClosedReq0.5.02011-03-06Change approach to message translation
#18401BogusReq0.5.02011-03-27Consider swapping to exceptions, not trigger_error
#18434ClosedDoc0.5.02011-04-13Groups & Template rendering
#18435ClosedDoc0.5.02011-04-13Allow dependency injection/more easily testable code
#18439Wont fixBug0.5.02011-04-13Wrong messages order in JS
#18649Wont fixReq0.6.02011-07-02Allow QuickForm2 to be extensible by the user
#18683ClosedReq0.6.02011-07-25$id with blanks not handled correctly
#18760BogusBug0.6.02011-08-25Problems with Object to String Conversion
#18787ClosedDoc0.6.02011-09-05Can't set label on group elements
#18833ClosedBug0.6.02011-09-14Callback renderer doesn't export setLabelCallback
#18874ClosedBug0.6.02011-09-26adding a static element throws Fatal Error
#18984ClosedReqSVN2011-11-12support phpunit 3.6
#19006DuplicateBugSVN2011-11-14unit test version check stops tests (for PEAR QA team)
#19038ClosedBugSVN2011-11-14tests run twice / main() not needed
#19039ClosedBugSVN2011-11-15class 'HTML_QuickForm2_Element_InputText' not found
#19040BogusBugSVN2011-11-15incompatable declaration
#19063ClosedBug0.6.12011-11-21error in JS _clearErrors()
#19097ClosedReq0.6.12011-12-02HTML_QuickForm2 does not generate valid html
#19216ClosedBugSVN2012-01-11Wrong http host used by HTML_QuickForm2_Controller_Action_Jump
#19247Wont fixReq0.6.12012-01-25HTML_QuickForm2_Element_InputFile
#19291BogusBug0.6.12012-02-13Month and year selected wrong if month = 00 in DB
#19302ClosedReq0.6.12012-02-22add 2 new rules (integer and numeric)
#19306BogusBug0.6.12012-02-24cannot set default
#19307ClosedReq0.6.12012-02-27cannot chain setValue
#19311BogusReq0.6.12012-03-01JavascriptBuilder->setDefaultAbsPath()
#19312BogusDoc0.6.12012-03-02hierselect unable to required secondary option
#19403ClosedReq2.0.0beta22012-04-28getValue() returns wrong technical field
#19477ClosedBug2.0.0RC12012-06-20Broken element names with nested container groups
#19535Wont fixReq2.0.02012-07-30Node::$ids cannot be resetted
#19598AnalyzedReq2.0.02012-09-07Validate Single Field
#19617ClosedReq2.0.02012-09-26Postprocessing and re-displaying forms - unable to inject errors
#19620BogusBug2.0.02012-09-27How to validate hidden fields?
#19622BogusBug2.0.02012-09-27My PEAR package manager doesn't see HTML_QuickForm2 package
#19672OpenReq2.0.02012-10-23Add advcheckbox
#19713OpenReq2.0.02012-11-20Add option to output both grouped and ungrouped errors
#19778Wont fixReq2.0.02013-01-07Add setData() method
#19802ClosedBug2.0.02013-01-28Repeat: content of repeated static elements is cleared
#19803ClosedBug2.0.02013-01-28Repeat: client-side rules on repeated containers not removed correctly
#19829BogusBug2.0.02013-02-21array renderer does not work with group_errors set to on
#19955ClosedReq2.0.02013-05-22Add HTML_QuickForm2_Element_Select::getOptionContainer()
#20019BogusReq2.0.02013-07-25'Select Built-in element': Possibility to set whole select as 'disabled'
#20071BogusBug2.0.02013-09-22Validation problem with default value
#20103ClosedReq2.0.02013-10-18Make Group::setValue() work with a group of radio elements
#20295ClosedBug2.0.02014-06-12Repeat: if defaults contain null values, previous values are reused
#20957OpenBug2.0.22015-10-02Error with getting file array
#20985OpenBug2.0.22015-11-18Empty rules is not supported for group containing group
#20990BogusBug2.0.22015-12-11Serverside group validation of single elements