OK I modified it so the phone table is populated as well
$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());
However, the phoneid in the name table is 0. This can't be right. Its almost like the relationship in the database isn't correct. Any ideas???😕