Ask coding questions

← Back to all posts
HTML Help
PythonCoder100 (5)

On a <form> in html, how do you save responses?

Answered by RyanRana (198) [earned 5 cycles]
View Answer
Commentshotnewtop
RyanRana (198)

The purpose of the form is to simply receive input, it does not save responses although if you want you, can save the result of the form as a variable like this one,

<!DOCTYPE html><html> <head> <form id="answer">What is your name?</form> </head> <script> x=document.getElementById(answer).innerHTML </script> </html>

If this post helped you please hit the upvote button!

Mosrod (475)

Please do not spam in the post title.

PythonCoder100 (5)

@Mosrod it was like 10 exclamations!