title: how to store html form data into file
body: <p>My HTML code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;INFORMATION&lt;/title&gt;
  &lt;/head&gt;
    &lt;body&gt;
      &lt;form action = "/cgi-bin/test.py" method = "post"&gt;
          FirstName:
          &lt;input type = "text" name = "firstname" /&gt;&lt;br&gt;
          LastName:
          &lt;input type = "text" name = "lastname" /&gt;&lt;br&gt;
  
          &lt;input type = "submit" name = "submit "value = "SUBMIT"&gt;
          &lt;input type = "reset" name = "reset" value = "RESET"&gt;
          &lt;/form&gt;
     &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>My PYTHON CODE (test.py) which is in cgi-bin directory:</p>
  
  <pre><code>#!usr/bin/python
  
  form = web.input()
  print form.firstname
  print form.lastname
  </code></pre>
  
  <p>what should i do to store html data in some file ??</p>