AW: [PEAR] Radio buttons and Quickform
| From: | Mirco Blitz | Date: | Tue, 14 Dec 2004 11:50:10 +0000 |
| Subject: | AW: [PEAR] Radio buttons and Quickform | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16225@lists.php.net to get a copy of this message | ||
Hi Mos,
you have to use Groups fort hat. Like this.
$radio1[]=&HTML_QuickForm::createElement('radio','t_pub','test','No','no'
);
$radio1[] =
&HTML_QuickForm::createElement('radio','t_pub',null,'No','no');
$form->addGroup($radio1, 't_pub_gr', 'Yes / No');
{$form_data2.t_pub_gr.html}{$form_data2.t_pub_gr.label}
Have Fun
Mirco
-----Ursprüngliche Nachricht-----
Von: Mos [mailto:mos_fr@yahoo.fr]
Gesendet: Dienstag, 14. Dezember 2004 08:17
An: pear-general@lists.php.net
Betreff: [PEAR] Radio buttons and Quickform
Hi everybody
I have a code using radio buttons in a quickform, but it does not works.
Does anybody have a code snippets which is pretty good, just to see what I
have forgotten... ?
I use :
$form_edit->addElement('radio', 't_pub', 'test','No',
'no','');
$form_edit->addElement('radio', 't_pub', null,'No',
'no','');
with a template based on
{$form_data2.t_pub.html}{$form_data2.t_pub.label}
but without success
Thanks
Mos
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php