I have a custom Checkbox its made in a Div
<div class="zs" name="toggle" state="on" id="zs"></div>
The checkbox has toggle on/off and the state attribute changes on click to on/off.
The div is placed in a for submittion but I dont know how to get $_POST[‘toggle’] from php to receive the attribute “state”
The browser is only going to send through
inputandselecttags with the form submission, notdiv. It sounds like you might want to store your value in a hiddeninput, IE:Then add to whatever javascript you’re already using to set the value appropriately.