title: Save insert from to file
body: <p>I have a input form and want to save the data that I haved insert into a file. Should I use get and set for this? Anyone have any ideas on what I should do?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function myfunction() {
      if (validation()) // Calling Validation Function
      {
          // Serializing Form Data And Displaying It In &lt;p id="wrapper"&gt;&lt;/p&gt;
          document.getElementById("wrapper").innerHTML = serialize(document.forms[0]); // Serialize Form Data
          document.getElementById("form").reset(); // Reset Form Fields
      }
  }
  
  function validation() {
      var name = document.getElementById("namn").value;
      var number = document.getElementById("number").value;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="sv"&gt;
      &lt;head&gt;
          &lt;title&gt;Write&lt;/title&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
          &lt;script src="http://form-serialize.googlecode.com/svn/trunk/serialize-0.2.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;!-- For Serialization Function --&gt;
          &lt;script src="hej.js"&gt;&lt;/script&gt; &lt;!-- Include JavaScript File Here--&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
          &lt;div id="main"&gt;
              &lt;div id="login"&gt;
                  &lt;hr/&gt;
                  &lt;form action="" method="post"&gt;
                      &lt;label&gt;Name:&lt;/label&gt;
                      &lt;input type="text" name="name" id="name" required="required" placeholder="fill in your name"/&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;label&gt;Number :&lt;/label&gt;
                      &lt;input type="text" name="number" id="number" required="required" placeholder="0876856"/&gt;&lt;br/&gt;&lt;br /&gt;
                      &lt;input onclick="myfunction()" type="submit"id= "submit" value=" Submit " name="submit"/&gt;&lt;br /&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance!</p>