..meanwhile...
I had imagined you starting over with something coherent and bare-bones.. like:
(upload this and try it out... then fill it out with your real code... if you like.)
..but now that I read Toby's reply on the php-db list I realize that maybe you meant for the second form to appear after inputting data, but *before* even submitting the first form? If that is the case, then you are talking about javascript and that is not PHP, and not related to the PHP lists. (Ask on a javascript (JS) list how to do that, or get an intro JS book.)
------------
Govinda