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 (Like discussed here and here ), but I want that file to be saved on the server, rather than the client's machine.
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.
So for example, could I use something like the code offered here 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.
Thanks!