title: How to post table with a form in php?
body: <p>I have a form with a table (values in it can be edited) in it, like this:</p>
  
  <pre><code>&lt;form action="file.php" id="myform" method="POST"&gt;
      &lt;input name="inp"&gt;
      &lt;div class="divclass"&gt;
          &lt;table id="mytable" name="mytable"&gt;
          &lt;tr&gt;&lt;th&gt;col1&lt;/th&gt;&lt;th&gt;col2&lt;/th&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td contenteditable='true'&gt;val11&lt;/td&gt;
          &lt;td contenteditable='true'&gt;val12&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td contenteditable='true'&gt;val21&lt;/td&gt;
          &lt;td contenteditable='true'&gt;val21&lt;/td&gt;&lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
      &lt;input type='submit' name='submit' value='Submit'&gt;
  &lt;/form&gt;
  
  &lt;?php
      print_r ($_POST)
  ?&gt;
  </code></pre>
  
  <p>So, when I click on submit, the entire form should be submitted right?</p>
  
  <p>But just the inputs - inp &amp; submit get submitted to the form, which I know when I print the post parameter array in php.</p>
  
  <p>Can someone please explain how I can get the table data too in my post parameter array $_POST?</p>
  
  <p>Also how do I trigger an onchange event on the table? I tried this, but it didn't seem to work :</p>
  
  <pre><code>$("#mytable").change(function (event) {
      console.log("changed")
      console.log($("#keno_config_table").val())
  })
  </code></pre>