How can I conect html to a data base?

Hi, I made a calculator using html and I want to know how to get the result to a data base to be stored.

Well, you can store HTML in a text field. But what do you want to achieve with it?