R
Rob Meade
Hi all,
I need to implement a simplistic shopping basket/checkout thingy...
I kinda threw something together, but its not keeping more than one item in
the session...
I'm basically loading the page, checking to see if there's an "addToBasket"
value in the querystring, if there is then I grab the product code (also in
the querystring) - now - here's where it seems to be going wrong...
I figured to keep a multitude of product codes in the session variable I'll
need to store an array...so, I first check to see if the
session("BasketItems") is "" / nothing - if so, I dim in an array, if not
then I set a variable to equal the session("BasketItems")...
I then get the UBound of the array, add 1 to it, and do a ReDim Preserve,
and add the product code from the querstring to the array at that
position...
Everytime the page loads I only ever have one item in it..
Anyone got any ideas? I must be doing something stupid here...
Any info appreciated..
Regards
Rob
I need to implement a simplistic shopping basket/checkout thingy...
I kinda threw something together, but its not keeping more than one item in
the session...
I'm basically loading the page, checking to see if there's an "addToBasket"
value in the querystring, if there is then I grab the product code (also in
the querystring) - now - here's where it seems to be going wrong...
I figured to keep a multitude of product codes in the session variable I'll
need to store an array...so, I first check to see if the
session("BasketItems") is "" / nothing - if so, I dim in an array, if not
then I set a variable to equal the session("BasketItems")...
I then get the UBound of the array, add 1 to it, and do a ReDim Preserve,
and add the product code from the querstring to the array at that
position...
Everytime the page loads I only ever have one item in it..
Anyone got any ideas? I must be doing something stupid here...
Any info appreciated..
Regards
Rob