我有了多份此HTML代码作为用户想虽然一个按钮,增加了另一个设置如何保存未经检查的动态复选框数组?
<input type="email" class="regular-text" id="customer_email_address[]" name="customer_email_address[]" placeholder="Email Address" />
<input type="text" class="regular-text" id="customer_email_password[]" name="customer_email_password[]" placeholder="Password" />
<input type="checkbox" id="customer_email_create[]" name="customer_email_create[]" />
我的问题是,虽然我可以保存与PHP选中的复选框,我不能确定哪些未被选中。
我该如何去做这样的事情?
在JS或表单提交? – clearshot66
post form submit –
尝试这里建议的内容 http://stackoverflow.com/questions/1809494/post-the-checkboxes-that-are-unchecked – clearshot66