You will need a server side programming language to accept the form posted data.
PHP is great for this purpose and has built in routines to connect to many different databases.
if you POST the data [<form method=POST>] then PHP can get the data by:
$_POST['form_item'] [<input type=text name=form_item>]
depending on which lanugage you want to use for the server, i would suggest finding a website from google that specializes on that language.
1000s of Free Javascripts