Hi
I’m using one PHP page to handle several stages of a customer registration process for training sessions that my organization sponsors. A switch statement looks for certain elements in the $_POST array, and calls the appropriate function for that stage of the process.
After the user registers the organization that will pay the fees, the training participants are entered by the user one at a time. At each of these iterations, I want to display the organization information that was entered at the first stage.
Using a different language, in a different life, I was able to add a record to a table that has an auto-increment ID field, and grab the ID value while I was there. It made it very easy to store that value in a variable and use it to query the DB and display the information later. Can this be done with PHP/mySQL?
I have thought of putting the information that needs to be displayed into hidden form fields each time, and this seems very clunky to me.