title: Convert html table to text file using PHP/Javascript
body: <p>I want to ask all of you for some help since I'm still new to web programming. So basically I have html table like this:</p>
  
  <pre><code>&lt;table width='200' border='1'&gt;
  &lt;TH&gt;Year 1 Spring&lt;/TH&gt;
  
  &lt;TR&gt;
  &lt;TD&gt;
  &lt;div id="y1f_0"&gt;one&lt;/div&gt;
  &lt;div id="y1f_1"&gt;one&lt;/div&gt;
  &lt;/TD&gt;
  &lt;TD&gt;
  &lt;div id="y1s_0"&gt;two&lt;/div&gt;
  &lt;div id="y1s_1"&gt;two&lt;/div&gt;
  &lt;/TD&gt;
  &lt;/TR&gt;
  &lt;/table&gt;
  &lt;input  type="button" onclick="something"&gt;
  </code></pre>
  
  <p>and for example if I click the button, and it will save the table above and output/export it as a text file so later one I want get back that text file to export it back to the html table. I don't really know how to do this, should I use PHP? Really appreciate all your help.</p>