Home » HTML » HTML_QuickForm » Bug #2326
Date field is not checked
Details
| Submitted | 2004-09-14 10:33 UTC |
|---|---|
| From | green at vista dot spb dot su |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.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" }