QuickForm Question

From: Date: Wed, 25 Feb 2004 04:05:33 +0000
Subject: QuickForm Question
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10914@lists.php.net to get a copy of this message
Hi How can I have a group within a group? How do I reference the first group within the second group? I need to group two text elements with a select element but I want different separators between them e.g. aaaaa . bb / selecta where aaaaa is the first text element, then a . separator then bb the second text element a / separator then the select element. here is what I have so far pddol = &HTML_QuickForm::createElement('text', '', null, array('size' => 5, 'maxlength' => 5)); $pdcnt = &HTML_QuickForm::createElement('text', '', null, array('size' => 2, 'maxlength' => 2)); $form->addGroup(array($pddol, $pdcnt), 'pdAmt', 'Enter the Per Diem: $', '.'); $select1 = &$form->createElement('select','pd2','per',array('A'=>'Weekly','B'=>'Monthly') ); $select1->setSize(1); $select1->setMultiple(false); $form->addGroup(array('pdAmt', $select1), 'pD', 'Enter the Per Diem: $', '/'); pddol is the aaaaa pdcnt is the bb pdAmt id the group of the above select1 is selecta pD is the group of pdAmt and select1 Is a group within a group the only way to do this or can I do this with a single group? Thanks

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