There are a number of tutorials which can guide you through them, step-by-step. One of the most notable is tizag.com.
I have picked out a couple of pages which are specific to your needs:
How to get the data from the form to the server
The difference between POST and GET
How to insert the data into the database
How to retrieve the data from the database
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)