title: How to get the value from<td> and save to Database in php
body: <p>I have a Table with checkboxes and I want to edit some td and want to get the value. 
  Here is my Code</p>
  
  <pre><code>&lt;table class="table table-bordered table-striped table-hover"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;&lt;input type="checkbox" id="allcb" name="allcb"/&gt; Check all&lt;/th&gt;
              &lt;th data-field="id"&gt;ID&lt;/th&gt;
              &lt;th data-field="firstName"&gt;First name&lt;/th&gt;
              &lt;th data-field="lastName"&gt;Last name&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          {% for user in product.users %}
                  &lt;td&gt;&lt;input type="checkbox" name="checkBox[]"  id="ic" value="{{ user.id }}" /&gt;&lt;/td&gt;
                  &lt;td  data-title="id"&gt;{{user.id}}&lt;/td&gt;
                  &lt;td data-title="firstName"&gt;{{user.firstname}}&lt;/td&gt;
                  &lt;td data-title="lastName" contenteditable='true' name="v1"&gt;{{user.lastname}}&lt;/td&gt;
  
              &lt;/tr&gt;
          {% endfor %}
      &lt;/tbody&gt;
  
  &lt;/table&gt;
  if(isset($_POST['checkBox']) &amp;&amp; !empty($_POST['checkBox'])&amp;&amp; isset($_POST['v1'])){
  
           $user =$_POST['checkBox'];
          $v1 =$_POST['v1'];
  
           $zl = 0;
           foreach ($user  as $id)
           {
             foreach ($v1 as $v2)
             {
  
               $userd = $em-&gt;getRepository('UserBundle:User')-&gt;find($id);
               $userd-&gt;setlastName($v2);
               $em-&gt;persist($userd);
  
  
               ++$zl;
             }}
  
          $em-&gt;flush();
        }
  </code></pre>
  
  <p>I dont get any result. I am trying to get the value like this:
              $v1 =$_POST['v1']; But I dont get anything.</p>
  
  <p>Can someone help me? Thanks!</p>