well the suggestion I gave didnt just relate to a customer login system, everything you need should be stored in sessions. so just transfer all that into an "orders summary" and "orders detail" record in your database. for mine I also used the servertime to be stored in a session and I used this for the ordernumber (since the servertime is always counting up. (I also stored and referenced this with the customer surname). anyway once its all in an orders record then you are all set to create the page to display it on screen or to create an email template :)
Chris