0
How to save the input of html form user without need of websites
2 Respuestas
+ 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