Specifications

FIGURE 25.8
The checkout.php script gets the customers details.
LISTING 25.13 checkout.phpThis Script Gets the Customer Details
<?
//include our function set
include (‘book_sc_fns.php’);
// The shopping cart needs sessions, so start one
session_start();
do_html_header(“Checkout”);
if($cart&&array_count_values($cart))
{
display_cart($cart, false, 0);
display_checkout_form($HTTP_POST_VARS);
}
else
echo “<p>There are no items in your cart”;
Building a Shopping Cart
C
HAPTER 25
25
B
UILDING A
SHOPPING CART
567
31 7842 CH25 3/6/01 3:39 PM Page 567