title: If checkbox with label is checked, submit form
body: <p>I cant seem to get my php script to recognize that the checkbox in my form is checked.</p>
  
  <p>I want to accomplish this:</p>
  
  <p>If checkbox is checked, the php script should submit to my DB.</p>
  
  <p><strong>PHP:</strong></p>
  
  <pre><code>&lt;?php
  if (!empty($_POST['approve_student'])) {
  
    if (isset($_POST['approve'])) {
  
          //submit
  
        } else {
  
          //do nothing
      }
    }
  ?&gt;
  </code></pre>
  
  <p><strong>FORM:</strong></p>
  
  <pre><code>&lt;input class="checkbox" name="approve" type="checkbox" id="approve"&gt;  
  
  &lt;label name="approve" for="approve"&gt;&lt;span&gt;&lt;div data-textbox="1" &gt;&lt;/div&gt;&lt;/span&gt;&lt;/label&gt;
  
  &lt;input  class='button_submit_2' name="approve_student" type="submit" value='Submit'&gt;
  </code></pre>
  
  <p><strong>NOTES:</strong></p>
  
  <ul>
  <li>Im using Jquery to keep checkbox checked during session.</li>
  <li>Im using CSS to customize checkbox.</li>
  <li>I dont know if these two might corrupt anything.</li>
  <li>Hope u can help.</li>
  </ul>