Hi I have a shopping cart that stores the item variable $size in the cart array. I want to add other variables to this array to be put in the cart. Can anyone help me please, the coding is as follows:
session_start();

@ $new = $_GET['size'];

if($new)
{
//new item selected
if(!isset($_SESSION['cart']))
{
$_SESSION['cart'] = array();
$_SESSION['items'] = 0;
$_SESSION['total_price'] ='0.00';
}

if(isset($_SESSION['cart'][$new]))
$_SESSION['cart'][$new]++;
else
$_SESSION['cart'][$new] = 1;

// $_SESSION['total_price'] = calculate_price($_SESSION['cart']);
$_SESSION['items'] = calculate_items($_SESSION['cart']);
}

if(isset($_POST['save']))
{
foreach ($_SESSION['cart'] as $size => $qty)
{
if($_POST[$size]=='0')