$nameid = $POST['nameid'];
$name = $POST['name'];
$phoneid = $POST['phoneid'];
$phone = $POST['phone'];
mysql_query("INSERT INTO Name (nameid, name) VALUES ('$nameid', '$name')") or die(mysql_error());
mysql_query("INSERT INTO Phone (phoneid, phone) VALUES ('$nameid', '$number')") or die(mysql_error());
OK....
<?php
// connect to the database prior to this code.
$sql1="Insert into name VALUES('$nameid','$name')";
mysql_query($sql1);
$sql2="INSERT INTO phone VALUES('$phoneid','$phone')";
mysql_query("$sql2);
?>
I didn't add in the dies...just because this code will work assuming you only have 2 fields per table. If this doesn't help then please provide how your table structure is. Thanks!