How to autosave a form

@russian-dima the code I did was your code and then all I changed was the input ID for my inputs. Other than that I have no code