分组单选按钮,我想提出在逻辑产品组单选按钮:Zend框架
Broadband products:
(*) 2 Mbit
() 4 Mbit
Voice products:
() Standard
() Total
Bundles:
() 4 Mbit + Standard
() 4 Mbit + Total
所有单选按钮都具有相同的属性name
- 你的想法。看来Zend Framework 1.8不支持以这种方式对单选按钮进行分组。有没有解决这个问题的方法?
更新。只是为了澄清,产生的代码应该看起来有点这样:
Broadband products: <br/>
<input type="radio" name="product" value="1"/> 2 Mbit <br/>
<input type="radio" name="product" value="2"/> 4 Mbit <br/>
Voice products: <br/>
<input type="radio" name="product" value="3"/> Standard <br/>
<input type="radio" name="product" value="4"/> Total <br/>
Bundels: <br/>
<input type="radio" name="product" value="5"/> 4 Mbit + Standard <br/>
<input type="radio" name="product" value="6"/> 4 Mbit + Total <br/>
不知道确切的格式代码。只有形式要素很重要。
这听起来像它可能是同样的问题。 http://framework.zend.com/issues/browse/ZF-3541 报告提出了一个修复他的帖子。 – 2009-07-01 16:25:37
你在使用Zend_Form吗? – jason 2009-07-07 04:05:33
是的,我确实使用Zend_Form。 – 2009-07-07 08:46:16