title: Auto-save form data to MySQL Database
body: <p>The application I'm currently working on is a way for doctors to enter patient parameters into a Web UI. There are certain forms with data associated to them, and each day should only have one form. Our problem at the moment is as follows: </p>
  
  <p>There's a lot of patient data to enter into each respective form, and doctors are worried that after entering all data and hitting the Submit button at the end of the page, which updates the MySQL database, their Internet connection might break and they will have to re-enter all their data. This will quickly lead to frustration.</p>
  
  <p>How can I achieve preventing this problem? My first thought was of a kind of auto-save feature, that periodically updates the MySQL database with the data that was already entered into the current page's forms, without the user having to hit Submit first. Unfortunately, I don't know how to approach this problem. Any ideas? The application is written in Racket, but the forms are plain old simple HTML and a MySQL server at the backend.</p>