Removing cart items with hyperlink question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :)


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux