session storage
| From: | Mat Harris | Date: | Mon, 13 Jan 2003 16:22:42 +0000 |
| Subject: | session storage | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131443@lists.php.net to get a copy of this message | ||
i am writing a shopping site for training (just out of interest).
When a user clicks "add to basket" i want to check whether an item with that id is already in my session ($ALCOHOLE["items"]), if so, redirect them the the view_cart page, if not then append it to the $ALCOHOLE["items"] array as $key => $value pairs.
I have played around with all sorts of loops and sorts all day but still cannot get it sorted. Can anyone suggest where I am going wrong or has anyone got a better method they would care to suggest?
cheers.