0
How to save the input of html form user without need of websites
2 Answers
+ 2
You can accomplish this with javascript.
Letâs assume we have the form bellow:
<form id = âformâ>
<input type = âtextâ name = âtextâ>
<input type = âsubmitâ value = âSubmitâ>
</form>
Use JS to intercept the submit event and do what you like with the data:
<script>
document.getElementById(âformâ).addEventListener(âsubmitâ,(e)=>{
e.preventDefault();
var data = new FormData(document.getElementById(âformâ));
});
</script>
+ 1
Pls solve the problem friend's