Re: Re: QuickForm w/Smarty: Defaults render when formhaserror
| From: | Tim W | Date: | Sun, 04 Jan 2004 01:03:16 +0000 |
| Subject: | Re: Re: QuickForm w/Smarty: Defaults render when formhaserror | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9943@lists.php.net to get a copy of this message | ||
You should add your radios like this :
$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'Label
message1', '1');
$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'Label
message2', '3');
$form->addGroup($radio, 'KeyListStatusID');
Otherwise, you create an array in your html code that will be parsed by php
when it is posted and that's not what you want.
==========
Bertrand,
I tried setting them up like that a few times, but the problem was that the
labels could not be separated from the elements. I very much hoping to keep
the appearance clean by splitting the elements and the labels in a layout
table. Is my only option to hard-code the labels into the template itself?
If you check the array at the bottom of this page (after making the changes
you specified above), you'll see how everything is getting bundled together
(all labels and elements are located in one html string).
http://www.guyfinley.com/testing/testFreebie/21WaysPoster/
Tim