title: Posting a php value from a html table without input field to database
body: <p>I am trying to post a td from a form.</p>
  
  <p>this is my td...</p>
  
  <p><code>&lt;td class="product'.$id.' " name="qnty" value="'.$value.'"&gt;'.$value.'&lt;/td&gt;</code></p>
  
  <p>since that has no input field, how i will post that value?</p>
  
  <p>Because i am trying to post it like this, and it is not working.</p>
  
  <pre><code>if(isset($_POST['submit_post'])){
  
  $fabric=$_POST['fabric'];
  $size=$_POST['size'];
  $qnty=$_POST['qnty'];
  
  $ins_sql = "INSERT INTO orders (fabric,size,product_quantity) 
              VALUES ('$fabric', '$size' , '$qnty')";
  if ($conn-&gt;query($ins_sql) === TRUE) {
  echo "New record created successfully";
  } else {
  echo "Error: " ;
  }
  $conn-&gt;close();
  }
  </code></pre>
  
  <p>The rest of the posts are from dropdowns and they are working fine.
  Why this is not working?</p>
  
  <blockquote>
    <p>Error: Undefined index: qnty</p>
  </blockquote>