Posted by Michael Fesser on 02/02/07 15:30
..oO(Flic)
>Hi, I am a relative beginner with php and have run into the problem in
>the subject line. I wonder if anyone could point out what the problem
>is as I have tried a few different things and it still doesn't like
>it.
>
>The code itself is:
>
>if($_POST['add']) {
> $product = $products[$_POST['id']];
> $cart->add_item($product['id'],$product['price'],$product['name']);
>}
>
>with the add_item line being the problem.
The error message is pretty clear. Where is $cart coming from?
Micha
[Back to original message]
|