Re: QF Date element with empty date ?

From: Date: Wed, 16 Feb 2005 08:40:14 +0000
Subject: Re: QF Date element with empty date ?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17552@lists.php.net to get a copy of this message
$datesearch = array(
        'language'  => 'de',
        'format'    => 'dmY',
        'minYear'   => "1995",
        'maxYear'   => date("Y")+5
    );
$form->addElement('date','createat','erstellt am',$datesearch,$classform); Now I want the user to give the possebility NOT to select a Date so they search for every element. Is there a way to give the elements inside the date elemnt a value like -- -- ----. So its obvious that no date is selected.
Just add 'addEmptyOption' => true to your $datesearch array -- Massimiliano Arione :: http://www.garak.it/ :: * NO WORD * http://gnu.org/philosophy/no-word-attachments.html * NO HTML * http://efn.no/html-bad.html

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