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?
then use
mysql_insert_id()
for example.
between the 2 DA code blocks place:
<?php
$foreignKey = mysql_insert_id();
?>
then you can store the $foreignKey into the next DA code block
denis