So, i'm developing a form that will be checked by a program to be executed with the data. How do you dump the data into a .json file with html forms or any other language?
For sake of the project i'll give a section of the html form to help understand.
<form action="/folder/data.php" method="post">
  <div>
    <label for="firstname">First Name:</label>
    <input type="text" id="firstname" name="firstname">
  </div>
  <div class="button">
    <button type="submit">Sumbit!</button>
   </div>
</form>
 
    