Removing cart items with hyperlink question
| From: | Boa Constructor | Date: | Sun, 08 Jun 2003 23:01:41 +0000 |
| Subject: | Removing cart items with hyperlink question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28433@lists.php.net to get a copy of this message | ||
Hey all, OK, I've made quite a bit of progress with my shopping cart and I'm
at the stage of removing items from it. If I change the quantity to "0" and
click the submit button the item is removed. However it isn't obvious how
to remove items so I want to put a link next to each item that says "Remove
Item".
The first line below works but the second one doesn't. If $quantity were to
equal 0 then I want both of these to do exactly the same thing.
echo "<Input type=text size=2 name=quantity[$buy] value=$quantity>";
echo "<a href=$PHP_SELF?quantity[$buy]=0>Remove Item</a><br>";
Any ideas?
Cheers,
G :)