title: How to save data on the server for later use?
body: <p>I have created the program for basic calculation and I have to save the users'  previous answers. It is simple addition formula in javascript. When the same person comes back after long time then also it must show the same answer. This means I want to save the answer on my server for that particular person. How can I store all of this data, and access it again when required?</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;style&gt;
          &lt;/style&gt;
          &lt;script type="text/javascript"&gt;
              function calculate() {
                  a = document.getElementById('num1').value;
                  b = document.getElementById('num2').value;
                  document.getElementById('result').innerHTML = Number(a) + Number(b);
              }
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;input id='num1' value="1"/&gt;
          &lt;input id='num2' value='3'/&gt;
          &lt;p id='result'&gt;&lt;/p&gt;
          &lt;button onclick="calculate()"&gt;Calculate&lt;/button&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In the above example I want to save the users' name and answers on my server. How do I do that?</p>