-1

How can I send the value of an .html form to a txt file?

I've tried using < form action="../Practice/html input.txt">, but I've been told that it only works with PHP.

Karl Knechtel
  • 56,349
  • 8
  • 83
  • 124
FV_GR.py
  • 27
  • 1
  • 6
  • 1
    This thread should help you out: https://stackoverflow.com/questions/14998961/php-write-file-from-input-to-txt – ruub May 16 '22 at 17:33
  • 1
    Do you want to rite the file locally or on a server? – JulesUK May 16 '22 at 18:08
  • I'm with @ruub - I know you're new to `HTML` (as stated), but writing to a file is a server-side operations. https://www.w3schools.com/php/php_file_create.asp I don't know that it **only** works with `PHP`, but from my experience, it's one of the easiest to learn, and it works well with `HTML` – jpgerb May 16 '22 at 19:55
  • follow-up question to @JulesUK - do you want to *read* the file via webpage or no (just via .txt document) – jpgerb May 16 '22 at 19:57
  • Your previous attempt at asking the same question, [Saving the content of an html input box](https://stackoverflow.com/questions/71860765/saving-the-content-of-an-html-input-box), was higher quality. – Karl Knechtel May 29 '22 at 17:35

0 Answers0