Re: very annoying textarea problem in quickform...
| From: | Nicolás Eugenio Ozimiça | Date: | Thu, 21 Dec 2006 13:20:08 +0000 |
| Subject: | Re: very annoying textarea problem in quickform... | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26163@lists.php.net to get a copy of this message | ||
Hi!
Are you using templates?
And is displayed the label of the first textarea in the group?
As far as I know, if you group elements and you use the default template,
there is room for only one label (the one of the group itself), and the
labels of the elements in the group are ignored...
On 12/21/06, rav k <rav220@hotmail.com> wrote:
Hi
All I'm trying to do is add a group of textareas and give each one a
label.
When I do this with advcheckboxes it works ok, but for some reason the
textareas dont show their labels and the code looks correct. What is going
on???!?!
Here's my code:
$res =& $mdb2->query('SELECT * FROM Skills');
$skills = array();
while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
$skills[] = &HTML_QuickForm::createElement('textarea',
$row['skillid'],
$row['skillname'], 'rows=4 cols=30');
}
$form->addGroup($skills, 'skills', 'Your requirements:', '<br />');
I've done print_r and the correct $row['skillname'] is returned so I know
the correct values are there. But they just aren't showing for some
reason.
I've tried to remove the skillgroup label but not working!! Please help!
Thanks
rav
www.bitesoftware.com - software for a better lifestyle
_________________________________________________________________
It's Hotmail's 10th Birthday! Come and play Pass the Parcel
http://www.msnpasstheparcel.com
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Nicolás Eugenio Ozimiça
Universidad de Chile