Hello,
I am writing some code for a shopping basket type effect (report generation filter). I have been able to add items to the session array ($cart).
The problem I am having is that when I try to display the session array ($cart)I get an unwanted "item" called "array". This always appears second last from the array listing...ie..
item1
item2
....
..
..
array
item_last
//code to add "item" to end of array
$cart[]=$name;
//code to display array ($cart)
foreach($cart as $value){echo "$value<br>\n";}
any ideas where I am going wrong?
Thanks.