Home » Validate » Validate » Bug #5577
Allow date input as an array
Details
| Request #5577 | Allow date input as an array |
|---|---|
| Submitted | 2005-10-01 11:33 UTC |
| From | chris dot yates1 at btconnect dot com |
| Assigned | pajoye |
| Status | Wont fix |
| Package | Validate |
| PHP Version | Irrelevant |
| OS | N/A |
| Roadmaps | (Not assigned) |
Comments
[2005-10-01 11:33 UTC] chris dot yates1 at btconnect dot com
Description:
------------
Allow date validation input to be an array. This allows validation directly from a HTML_QuickForm_date form element.
Test script:
---------------
Put this at the start of the date function
// Handle date as array
if (is_array($date)) {
$date = implode('-', $date);
}