title: How to submit multiple array checkbox value from database to another page
body: <p>I am trying to submit multiple arrays with a checkboxs which is the value of checkboxs is from my database but I am not able to get the value, here is what I have so far</p>
  
  <pre><code>&lt;?php
  include('db.php');
  $sql = '
    SELECT DISTINCT v_co_dept_sn
    FROM v_co_comp_info
    ORDER BY v_co_dept_sn ASC
  ';
  $result = mysql_query($sql);
  ?&gt;
  
  &lt;table style="border: 0px"&gt;
  &lt;?php
  while ($row = mysql_fetch_assoc($result)) {
      echo '&lt;tr&gt;&lt;td&gt;';
      echo '&lt;input type="checkbox" name="jabatan[]" value="' . $row['id'] . '"/&gt;';
      echo '&lt;/td&gt;';
      foreach ($row as $key =&gt; $value) {
          echo '&lt;td&gt;' . htmlspecialchars($value) . '&lt;/td&gt;';
      }
      echo '&lt;/tr&gt;';
  }
  ?&gt;
  </code></pre>