ATM, I'm testing my cart. When I load a new page with products to add to cart, they add add fine but i also get an error of for example:
Notice: Undefined index: cart_25 in
25 IS the index that is associated with the product.
if (isset($_GET['add'])) {
$_SESSION['cart_'.(int)$_GET['add']]+=1;
}
foreach($_SESSION as $name => $value) {
if ($value>0){
if (substr($name,0,5)=='cart_') {
$name = substr($name, 5, (strlen($name)-5));
echo $name.'<br />';
}
Any tips to help would be great