so let me see if i understand what you want.
you insert into one table.
and want to insert the created ID into to next table as foreign key?
between the 2 DA code blocks place:
$foreignKey = mysql_insert_id();
then you can store the $foreignKey into the next DA code block