Everytime I changed the total to grandtotal, and test the page I get a message about that variable. I do get the total pre shipping, tax and discount. So I added the discount amount and I can work around this.
I attempted to use the info you gave me re the couponCode on the confirm page. When I added the recordset rsCouponCode to the confirm.php, I got the message that the rs was not ok, so it would not add to the page. Is there a way to do the following: Once check out is clicked the coupon code gets posted to the orders table with the other info. Then on the daily_candy db, the column couponUsed (which is a tiny int. and set to 1) gets a 0 (this would indicate that it has been used. On the cart page when the customer enters the coupon code, if the column couponUsed is 0 they get a message that the coupon has been used.