0

I have my form.html (HTML/javascript) file on remote host (host-A) running apache httpd webserver.

All the end-users access the HTML file on their respective laptop system's browsers using this URL

http://host-A/form.html

They get a textbox where they can fill any data they like.

My requirement is that when they click submit button the data from the textbox should get stored on host-A in a given filename say "userdata.txt" at a given path say "/usr/dump/userdata.txt"

I have seen many examples where the file with the data is offered to be downloaded on the client machine accessing the URL and not of the host-A where the webserver is running. However, that is not my requirement.

JavaScript: Save HTML form and checkbox data to .txt file without server?

Please share a sample snippet solution where the textbox value can get stored on host-A server in a pre-defined file path "/usr/dump/userdata.txt" if that is anyways possible?

Ashar
  • 2,118
  • 4
  • 36
  • 77

0 Answers0