QuickForm error
| From: | Köteles Zoltán | Date: | Wed, 12 Jul 2006 08:30:54 +0000 |
| Subject: | QuickForm error | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24618@lists.php.net to get a copy of this message | ||
Hello,
I always got an error:
Fatal error: [] operator not supported for strings in /usr/home/web/devel/admin/groups.php on line 63
and here's the code:
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/Renderer/ArraySmarty.php';
$form =& new HTML_QuickForm('frm_groups', 'post', 'admin.php?p=groups');
$form->addElement('header', $strAdminGroupsHeader);
$deleted[] = &HTML_QuickForm::createElement('radio', null, null, $strAdminGroupsYes, '1'); <- this is the line 63
$deleted[] = &HTML_QuickForm::createElement('radio', null, null, $strAdminGroupsNo, '0');
$form->addGroup($deleted, 'deleted', $strAdminGroupsDeleted);
What's the problem with this?
Thanks a lot
ZoTyA