Source code:
<?php
//include our function set
include ('include_pet_fns.php');
// The shopping cart needs sessions, so we start one
session_start();
$cart = $_SESSION['cart'];
//echo $cart;
do_html_header('Checkout');
echo '<table border="0" cellspacing="0" cellpadding="0" width="750">';
echo '<tr>';
echo '<td width="50%" style="padding-left:5px;padding-right:5px">';
echo '<img src="images/garfield_goodies2.gif" width="360" height="200">';
//print_r($_SESSION['cart']);
if($_SESSION['cart']&&array_count_values($_SESSION['cart'])) {
display_cart($_SESSION['cart'], true); //!!!
} else {
echo '<p class="species">There are no items in your cart</p>';
}
echo '</td>';
echo '<td style="padding-right:5px;padding-left:5px">';
if($_SESSION['cart']&&array_count_values($_SESSION['cart'])) {
if(isset($_SESSION['normal_user'])) {
display_another_checkout_form();
} else {
display_checkout_form();
}
}
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td> </td><td> </td>';
echo '</tr>';
echo '</table>';
do_html_footer();
?>