What I am trying to do here is pass the following from one page to the next
page1.php
setcookie("items_tray[$total_items], $selected_item_no);
setcookie("quantity[$total_items]", "1");
$total_items++;
setcookie("total_items", $total_items);
and call it to page2.php
$items_tray[] = $HTTP_COOKIE_VARS['items_tray[]'];
$quantity[] = $HTTP_COOKIE_VARS['quantity[]'];
$total_items = $HTTP_COOKIE_VARS['total_items'];
I know that the cookies are being set on page1.php however the values of the quantity and items_tray are not carrying over to page2.php and I can't figure out why.
Any help appreciated.
Steve