Hello Jay,
add.php3:
1. send the form data to a script which executes the SQL statements
<form action="insert.php3" method="post">
...
</form>
insert.php3:
2. check the submitted data and execute a SQL query which inserts the data into the database (INSERT INTO foo ...) and retrieve the ID of the inserted record by using the last_insert_id () function.
$newID = last_insert_id ();
redirect the request to list.php3 by sending a HTTP header using the header () function, send the new ID as part of the query string
header ("Location: ./list.php3?ID=$newID");
list.php3:
4. check if the variable $ID is set (i.e. the script is invoked by list.php3) and highlight the matching record.
greetings, Keita