Im new to html and javascript but is there a way take input from html and save that data into a file named db.json. Any help would be appricated thanks.
Here is my input boxes code:
<h2 style="color: white; text-align: center;">Username</h2>
<input type="text" name="txtName" placeholder="Enter your username" />
<h2 style="color: white;text-align: center;">Message</h2>
<textarea id="msg" name="msg" placeholder="Write some message ..." style="height:100px"></textarea>
<div></div>
<button type="submit">Submit</button>
Hope this helps if you need more info please let me know. I do know its not the greatest idea to save to a json file