我得到了这样的表格:
<input name="form[AttendeesInstitution][]" type="text">
<input name="form[AttendeesInstitution][]" type="text">
使用 Firefox 开发人员工具时,我可以从我的 $_POST 中看到我得到了一个有效的值数组。我的问题是它被提交到像“Flexsus Brugsen”这样的数据库。我需要它是像这样的逗号分隔值:“Flexsus,Brugsen”。我试图在一个有限的 Joomla 组件中构建它,所以我可以在 _POST 之前做一些 jQuery 或在 _POST 上做一些 PHP。但我找不到解决方案:-(
编辑:删除 HTML id