RE: [PEAR] QFController processing

From: Date: Fri, 19 Dec 2003 13:33:30 +0000
Subject: RE: [PEAR] QFController processing
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9722@lists.php.net to get a copy of this message
> -----Original Message----- > From: Alexey Borzov [mailto:borz_off@cs.msu.su] > > Mike Carter wrote: > Oh, I've finally read *all* of your previous mail. I tried to keep it short - but wanted to try and cut down o nthe amount of email going to-and-fro in order to diagnose the problem. Sorry if it is wordy :-/ > Looks strange indeed. > > exportValues() returns only the values for the elements that *were* > added to the form via addElement() / addGroup(). Can it be that you > don't add some of the elements in your buildForm() method? I use two methods, depending on wether the item is in a group or not, as per QF examples:- $eventDate[] = &HTML_QuickForm::createElement('date', 'eventDate', null, array('format' => 'dMY', 'language' => $_SESSION['_lang'], 'minYear' => date('Y'), 'maxYear' => '1902', 'addEmptyOption' => true)); $eventDate[] = &HTML_QuickForm::createElement('link', 'help', '', '?', "<sniplongline>", 'class' => 'helpLink')); $this->addGroup($eventDate, 'eventDateGroup',$language['L_EventDate']); $this->addElement('textarea', 'detail', $language['L_Details'], array('cols' => '40', 'rows' => '5')); So, as far as I am aware they are pretty much added - they are displayed fine on the page when rendered by QF - and post their values too. > > It is as if the Page::loadValues() method is not updating > the containers > > data array in the session correctly/fully after a > submission of the form? > > I suspect this has nothing to do with loadValues(). Was a wild stab in the dark. Out of interest, how do the $_POST variables get in to the QF container - what method kicks off the array copying? - Mike C ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com ________________________________________________________________________

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