create a form and set the form so it will POST the form results,
The ACTION should be set to the location of the php script you are going to create.
Open a connection to the database
$connection = mysql_connect ("hostname", "username", "password");
if ($connection == false){
echo mysql_errno().": ".mysql_error()."<BR>";
exit;
}
mysql_select_db ("databasename");
set the variables for the form data
$formvariablename = $_POST["formfieldname"];
insert data into database
mysql_query ("insert into tablename (fieldname)
Values ('$formvariablename')");
Thats basically how it goes,
Regards Andy