我在zend中编写代码,我想创建多个复选框代码来选择数据,单击提交按钮查看数据库中的信息后,代码工作正常,但是当它到达数据库时,字段不显示选择框改为在该字段中写入“数组”。这是我下面的表单代码..任何建议都非常感谢
$Organisation_type = new Zend_Form_Element_MultiCheckbox('Organisation_type', array(
'multiOptions' => array(
'1' =>' Start-up',
'2' =>' Sole Proprietor',
'3' =>' Partnership',
'4' =>' Close Corporation',
'5' =>' Company Trust',
'6' =>' Compny Propriety Limited',
'7' =>' Co-operative',
'8' =>' Non Profit Organization',
)
));
$Organisation_type->setLabel('Organisation type');
$Organisation_type->setValue(array('Start-up', 'Sole Proprietor', 'Partnership', 'Close Corporation', 'Company Trust', 'Compny Propriety Limited', 'Co-operative', 'Non Profit Organization'));