I have a problem with using an array as a session variable.
I have register globals OFF now that its the default (I'm using php 4.2.3)
I declare session variables like so.
$ses_basket_price[0]=$v_price;
I can assign one value to it $_SESSION['myvar'] = $ses_basket_price[0];
but not make it an array
e.g. $_SESSION['ses_basket_price[]'] = $ses_basket_price[0];
So basically how would i make this an array add values to it and then display them??
The array will be build dinamically since I do not have all values the first time the session code is executed. Each time a user clicks the code is executed and a new value should be added to the session array
any help would be great!