title: Display only the checkbox checked data on form submit
body: <p>I have a form that consists of a table with four data cells for comparison in it and also each column has a check box. When I click on the checkbox and submit the form then I want to display only the checked tables in new page. How can I do that? Can anyone help me with working example?</p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Comparision of Printers&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form action="newpage.php" method="get"&gt;
  &lt;table width="1023" border="1"&gt;
    &lt;tr&gt;
      &lt;td width="193"&gt;&lt;/td&gt;
      &lt;td class="p1" width="113"&gt;&lt;img src="images/upmini.png"/&gt;
        &lt;label&gt;
        &lt;input type="checkbox" name="p[]" value="Printer1" id="CheckboxGroup1_0" /&gt;
        Printer1&lt;/label&gt;
  &lt;/td&gt;
      &lt;td class="p2" width="67"&gt;&lt;img  src="images/upmini.png"/&gt;
        &lt;label&gt;
        &lt;input type="checkbox" name="p[]" value="Printer2" id="CheckboxGroup1_1" /&gt;
        Printer2&lt;/label&gt;&lt;/td&gt;
      &lt;td class="p3" width="67"&gt;&lt;img  src="images/upmini.png"/&gt;&lt;label&gt;
        &lt;input type="checkbox" name="p[]" value="Printer3" id="CheckboxGroup1_2" /&gt;
        Printer3&lt;/label&gt;&lt;/td&gt;
      &lt;td class="p4" width="67"&gt;&lt;img  src="images/upmini.png"/&gt;&lt;label&gt;
        &lt;input type="checkbox" name="p[]" value="Pritner4" id="CheckboxGroup1_3" /&gt;
        Printer4&lt;/label&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;Title&lt;/td&gt;
      &lt;td class="p1" &gt;Printer1&lt;/td&gt;
      &lt;td class="p2" &gt;Printer2&lt;/td&gt;
      &lt;td class="p3" &gt;Printer3&lt;/td&gt;
      &lt;td class="p4" &gt;Printer4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;Manufacturer&lt;/td&gt;
      &lt;td class="p1" &gt;Personal Portable 3DPrinters (PP3DP) founded by Be&lt;/td&gt;
      &lt;td class="p2" &gt;Personal Portable 3DPrinters (PP3DP) founded by Be&lt;/td&gt;
      &lt;td class="p3" &gt;Personal Portable 3DPrinters (PP3DP) founded by Be&lt;/td&gt;
      &lt;td class="p4" &gt;Personal Portable 3DPrinters (PP3DP) founded by Be&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;/table&gt;
  &lt;input type="submit" name="compare" value="compare" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>