title: Add HTML5 form input to a server-side text file
body: <p>I am looking take in a single string of data using a web form (presumably HTML5), and append that input onto the end of a server-side text file.  Is there a way for me to do this using something like Javascript or ActiveX?  I know you can use such a form to create a text file and download it to the client (<a href="https://stackoverflow.com/questions/13685263/can-i-save-input-from-form-to-txt-in-html-using-javascript-jquery-and-then-us">Like discussed here</a> and <a href="https://stackoverflow.com/questions/16870876/writing-html-form-data-to-a-txt-file-without-the-use-of-a-webserver">here</a> ), but I want that file to be saved on the server, rather than the client's machine.</p>
  
  <p><em>Security will be handled in the form of access controls on the form page itself, so I'm not too worried about code injection, although if there was a relatively easy way to sanitize the inputs, I would include that as well. Also, the contents of this file will not be sensitive in nature, so public exposure is fine.</em></p>
  
  <p>So for example, could I use something like the <a href="https://stackoverflow.com/questions/13685263/can-i-save-input-from-form-to-txt-in-html-using-javascript-jquery-and-then-us">code offered here</a> but then add the input to file on the server instead of offering it as a download? If needed, I could also switch to PHP, or other web languages.</p>
  
  <p>Thanks!</p>