我想在逻辑产品组中显示单选按钮:
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/>
没关系确切的格式代码。只有表单元素很重要。