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_QuickForm » Bug #2326

Date field is not checked

Details

Submitted2004-09-14 10:33 UTC
Fromgreen at vista dot spb dot su
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.6
Roadmaps(Not assigned)

Comments

[2004-09-14 10:33 UTC] green at vista dot spb dot su

Description:
------------
$MyForm->validate() does not check date field.

Reproduce code:
---------------
$MyForm->addElement('date', 'Date', 'Date', array('minYear'=>2000, 'maxYear'=>date('Y')));

Expected result:
----------------
I expect error message when input 31-Feb-2004

Actual result:
--------------
in process I have for Date
{ ["d"]=> string(2) "31" ["M"]=> string(1) "2" ["Y"]=> string(4) "2004" }