HTML_QuickForm2: fixing data
| From: | Christian Weiske | Date: | Wed, 04 Mar 2009 07:16:14 +0000 |
| Subject: | HTML_QuickForm2: fixing data | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29733@lists.php.net to get a copy of this message | ||
Hello all,
I am using QuickForm2 and validate date input with it. To make the form
convenient for the user, I would like to modify their input value -
regardless if valid or not. The special task I want to fulfil is
expanding the year of the date to be 4 chars, not only 2 as they might
input it. Example:
- User writes 89-2-1
- I detect that the year is 1989 and want to expand it to 1989-02-01
and display that in the form.
How could I achieve that? QF1 had filters for that.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc