Re: HTML_QuickForm

From: Date: Wed, 07 Sep 2005 21:25:34 +0000
Subject: Re: HTML_QuickForm
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20849@lists.php.net to get a copy of this message
On 9/7/05, pavel <paveli@klub.chip.pl> wrote: > Hi, I have the following problem. > I have elements of type 'date', constructed as follows. > > > $h[]=&$form->createElement('static','','','Start:'); > > $h[]=&$form->createElement('date','start',null,array('format'=>'H')); > > $h[]=&$form->createElement('static','','','Stop:'); > > $h[]=&$form->createElement('date','stop','null',array('format'=>'H','addEmptyOption'=>true,'emptyOptionText'=>'???','emptyOptionValue'=>'???')); > $form->addGroup($h, null,'Start and Stop party'); > > How should I get values of start and stop? > I tried using the exportValue method in various way: > > $start= $form->exportValue('start'); > $st=$start['H']; > ... > > but without success... > print_r($start); print_r($form->exportValues()); -- Justin Patrin

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