我有了多份此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