Re: Re: Quickform date element

From: Date: Tue, 09 May 2006 17:12:21 +0000
Subject: Re: Re: Quickform date element
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24025@lists.php.net to get a copy of this message
Justin Patrin wrote:
On 5/8/06, cwhisperer <cwhisperer@vo.lu> wrote:
unfortunately I do not know how to do that but may be someone else will do it ;)
Just go look at the date element and extend the function that does the select creation. Then you just register your own element class and use it as normal.
Just another note on this: For a only few days (end of june to beginning of july) I would make a normal select list like this: June 26th June 27th ... July 2nd Why? Because having two select elements (day and month) as it would be provided by the date element, would also require writing QF rules that check that somebody does not select dates like June 2nd or July 28th. For such a specific case, a normal select would therefore be the best solution (IMHO). Regards, Mark

« previous php.pear.general (#24025) next »