leatherback, it assigns the word 'Array' when i use the code you suggested.
this simple script is a shopping cart.
I keep adding new items to the cart using this code:
$_SESSION['productid'][] = $productid;
$_SESSION['prod_name'][] = $prod_name;
and then I list the item in the cart using this code:
$_SESSION['array_len'] = count ($_SESSION['productid']);
for ($i = 0; $i < $_SESSION['array_len']; $i++) {
echo"Prod. ID: " . $_SESSION['productid'][$i];
echo"Prod. Name: " . $_SESSION['prod_name'][$i];
}
etc...
it works fine on my local machine.
it works fine on the server the first time i load the page containing this script (after that it gives the fatal string error).
any more suggestions ?