hi,
how can i pass the price...
i have the items with a checkbox that contains the unique id but how could i pass the price?
// this is looped through each item in read file
<input type="checkbox" value="<? echo $id; ?>">
then added to the session...
if ( !isset( $_SESSION["cart"] ) ) { // check if the array is there
$_SESSION["cart"] = array(); // if not create one
}
foreach($id as $id) {
$_SESSION["cart"][$id] = $price; // add the data to the array
}
then display it...
foreach ($_SESSION['cart'] as $id => $price ) {