addtocart
$flight,
"quantity" =>$quantity_picked
);
}
else
{
echo "Adding new flight to the array";
$_SESSION['shoppingcart'][] = array(
"route" =>$flight,
"quantity" =>$quantity_picked
);
}
echo "No of different flights currently stored in session =
".count($_SESSION['shoppingcart']);
else
{
print "No Flights to add
";
print "at the moment (You didn't select a quantity
";
}
?>
Unregister Session
View Cart