How to automatically save a record in the database?

The idea is that I need to keep the machine record to the database.
-- example --
I have input range when he changed it, then you need a gun to change/save the record to the database, without perestrojki page without pressing the button...

If I understand it you can implement only on ajax, but to be honest, I don't know ajax and I'm not asking for a direct everything on a silver platter, I'm just asking a question, and if you are difficult to help, kinte reference, or something like that.

Thank you!
March 20th 20 at 11:39
1 answer
March 20th 20 at 11:41
Make a separate php file on the server that will receive the request and record to the database. Looking for a js script which checks for input on the change and, accordingly, the function that makes a get or post request to this file which takes the data and makes the action database.

Find more questions by tags AJAXPHP