Just set the html form to post to itself or another PHP page.
in the php page, grab the post vars and run the necessary mysql commands.
PHP Code:
$id = $_POST['id'];
$html_data = $_POST['foo'];
// mysql connect /etc..
$sql = "INSERT INTO table_name (id, data) VALUES ('{$id}', '{$html_data}');";
mysql_query($sql);
Also, no need for 3 crossposts..
-r