title: How to retrieve custom html attribute in php POST?
body: <p>I have a custom Checkbox its made in a Div </p>
  
  <pre><code>&lt;div class="zs" name="toggle" state="on" id="zs"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The checkbox has toggle on/off and the state attribute changes on click to on/off.</p>
  
  <p>The div is placed in a  for submittion but I dont know how to get $_POST['toggle'] from php to receive the attribute "state"</p>