Re: QuickForm Date Select Values

From: Date: Tue, 14 Mar 2006 07:11:51 +0000
Subject: Re: QuickForm Date Select Values
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23287@lists.php.net to get a copy of this message
jacob-nospam@keystreams.com wrote: > Can someone explain how I can change the option values of the select > menus to match the option? You can't do it with the standard date element. If you really want to have this, you have to either overload the existing date element class or write your date element class. > For example, why is <option value="1">Jan</option> not <option > value="Jan">Jan</option> or, for the day, <option > value="1">01</option> not <option > value="01">01</option>? If you want to calculate dates, the numeric values will be more helpful than text like 'Jan' -- that's the reason. The translation into a string is very easy, e.g. if you want to display the month name somewhere. Regards, Mark

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