0
down vote
favorite
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,
<table width='200' border='1'>
<TH>Year 1 Spring</TH>
<TR>
<TD>
<div id="y1f_0">one</div>
<div id="y1f_1">one</div>
</TD>
<TD>
<div id="y1s_0">two</div>
<div id="y1s_1">two</div>
</TD>
</TR>
</table>
<input type="button" onclick="something">
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, Thanks