I explain the structure of my script:
index.php => cart.php => checkout.php
In the index.php it is the catalog, the products list, with the link cart?action=add&id=$id I add each product to the cart, then I can update, delete or again adding a product...
Today I try to insert your script in to mine, but when I have all the products in the basket, I don't know how to take this array in the $_SESSION for the checkout.php file...
Please help me!
p.s. I manage all the data with the session and then, after checkout.php, I write all in the db.