Re: Pear QuickForm date element causing problems

From: Date: Tue, 10 Aug 2004 06:30:32 +0000
Subject: Re: Pear QuickForm date element causing problems
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14037@lists.php.net to get a copy of this message
Hi, Sam Miller wrote:
I'm using PEAR's quickform. It is quite useful, but sometimes it also causes major headaches. Well, my problem at the moment is that I can't get the date element to work properly. My code is: $this->addElement('date', 'Birthdate', 'Date of Birth',
                   array('language'=>strtolower($_SESSION['language']),
                                              'format'=>'Y Y',
                                              'minYear'=>date('Y')-30,
                                              'maxYear'=>date('Y'),
                                              'addEmptyOption' => TRUE)
                                              );
This is obviously NOT your code (hint: 'format'). If your code is too precious to share, our time is too precious to waste.

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