HTML stands for Hyper Text Markup Language. It is used to describe to browsers how text/images should be displayed.
It does not have any logic built into it. In other words, it's not a "programming language" it's just a defined way to "mark up" text so that it displays the way you want it to display in a web browser.
This means that HTML cannot be used to store things into a database. You need to submit the page to some code that is running on a web-server that will take what the user provided, validate this information (sanitize it), and then (if the data is valid/clean) store it in the database.
You can use any server-side language that you want: PHP, ASP/ASP.NET, Java (JSP), Perl etc. etc.
-Frinny