It never went to confirm.php. It went straight from cart_static.php to checkout.php and then to the Authorize.net gateway. Although the order was processed correctly and he did receive a confirmation email from Authorize. But not our custom email (blank_2.php) that shows the cart. I put this latest code in, after the order was processed it went back to cart_static "your cart is empty".