0
以下是我的代码片段:如何在smarty中使用数组给出相同的名称?
<tr height="30" id="user_option">
<td width="300">
<input type="checkbox" id="users" name="users" value="users"/>Users
</td>
<td> <input type="checkbox" id="upload_from_file" name="upload_from_file" value="upload_from_file"/>Upload From File
</td>
<td>
<input type="checkbox" id="copy_paste_from_excel" name="copy_paste_from_excel" value="copy_paste_from_excel"/>Copy paste from excel
</td>
</tr>
这是智者的模板代码。实际上,当我提交这个表单时,我想要一个包含复选框值的数组,以便实现我必须为这些复选框使用相同的名称。但我无法以这样的方式命名复选框,以便在提交表单后可以将所有选中的复选框的值存储在单个数组中。你能帮我实现这个目标吗?提前致谢。