title: Submit html table data with via form (post)
body: <p>I want to post this html table on submit button click.</p>
  
  <p>01 - I want to retrieve the data of this table in php code (server side)
  02 - I also want to display this table on another page.</p>
  
  <p>I'm using </p>
  
  <p>PHP, JQuery</p>
  
  <p>I have html table with many rows in form tag.</p>
  
  <pre><code>&lt;form id="frm_test" class="form-vertical" method="post"&gt;
    &lt;table id="mytable"&gt;
      &lt;tr&gt;
        &lt;td&gt;
          &lt;input type="text"  name="color_1" value="" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text"  name="color_2" value="" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text"  name="color_3" value="" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text"  name="color_4" value="" /&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
      ......
      ......
      ......
      ......
      .....
    &lt;/table&gt;
  
    &lt;input type="submit"  name="submit" value="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>===========</p>
  
  <p>there are 4 input fields in each row (4 cells in each row). and hundred rows in table. So if I get value via name in php code then I have to write lot of code to get 100(rows) * 4 (input fields) = 400 inputs. So my question was "What is the best way to achieve this" </p>