Thanks everyone for the posts, this is getting clearer.
I've read the Zend article on sessions-i have some basic understanding but still not sure how to implement this. Here's what I am trying to do (hopefully, it's clear!!):
Person comes to my page, executes a form which writes to MYSQL db via PHP. I need to echo the mysql_insert_id -in other words, after the record is created, I need to grab the auto-increment ID and use this in a subsequent page as a value that is going to be part of a hidden field. Specifically, the subsequent page that the person is directed to has another form which directs them to paypal, and in this form that goes to paypal, there are input hidden fields. In one of the input fields, I'd like to have the ID generated from mysql_insert_ID entered. Maybe this is an html or Java job? For some reason, I think the session route in overkill?
Thanks