title: How to pull out the values of ticked checkboxes using PHP?
body: <pre><code>while ($row= mysql_fetch_array($result, MYSQL_ASSOC))
  { $id=$row[id];
    $html=&lt;&lt;&lt;html
  &lt;tr&gt;&lt;td&gt; 
  &lt;input style="float:left" type="checkbox" name="mycheckbox"  value="$id"&gt;   
  &lt;span style="float:left"&gt;$row[content]&lt;/span&gt;
  &lt;span style="color:black;float:right"&gt;$row[submitter]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;  
  html;
  echo $html; 
  }
  </code></pre>
  
  <p>Since the HTML code is generated dynamically, I don't know how long the array "mycheckbox" is and I don't know what checkboxes are ticked or unticked(This is determined by users).  How to retrieve the values of ticked checkboxes using PHP?</p>