checkout($_SESSION['cart'])) { # Reset cart to empty $_SESSION['cart'] = array(); $_SESSION['notice'] = 'Thank you. your order has been processed, and will dispatch soon.'; header('Location: ?browse'); } } } ?>