So how would that look? I'm not sure how to use the Location. Would it be:
<?php
do all my database stuff
$query_eval = "select LAST_INSERT_ID() from some_db";
$lastinsertid = mysql_query($query_eval)
header("Location: script.php?id=$lastinsertid");
?>