How to get Data from table in twig by checking a checkbox
<p>I created a table in twig template. In the first Column you can check a checkbox. After checking checkbox it should remove the row. My problem is how I can get the Data to remove it.</p>

<p>Here is my table </p>

<pre><code>&lt;table class="table table-bordered table-striped table-hover"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
                  &lt;th&gt; &lt;label for="checbox"&gt;Check&lt;/label&gt;&lt;/th&gt;
                  &lt;th&gt;id&lt;/th&gt;
                  &lt;th&gt;Name&lt;/th&gt;
                  &lt;th&gt;Age&lt;/th&gt;  
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          {% for products in user.products %}
          &lt;tr&gt;
            &lt;td&gt;&lt;input type="checkbox" name="checkBox"  id="ic" value=true/&gt;&lt;/td&gt;
              &lt;td &gt;{{ products.id }}&lt;/a&gt;&lt;/td&gt;
              &lt;td &gt;{{ products.name }}&lt;/td&gt;
          &lt;/tr&gt;
          {% endfor %}


      &lt;/tbody&gt;
  &lt;/table&gt;

 if(isset($_POST['checkBox'])== 'true'){

        $products = $_POST['??????'];


        $zl = 0;
        foreach ($products as $pr)
        {
          $em = $this-&gt;getDoctrine ()-&gt;getManager ();
          $pr = $em-&gt;getRepository('UserBundle:Products')-&gt;find($pr);
          $user-&gt;removeProduct($pr);
          ++$zl;
        }


        $em-&gt;persist($user);
        $em-&gt;flush();
</code></pre>

<p>}</p>

<p>How I can get the Data?  <code>$products = $_POST['??????'];</code> I don"t know which parameter I have to put  here to get the Data from the selected checkbox.</p>