I'm developing a fairly basic shopping cart. My original implementation
had the user click on a link to add an item to the cart
(addtocart.php?item=123456). I figured it could just increase the
quantity every time the user clicked. However, with caching turned off
the quantity is increased if the user presses back and then forward in
his/her browser. Is there any simple way to avoid this? I noticed that a
lot of online retailers don't increase the quantity above 1 when a user
clicks on [Add to Cart]; they simply allow the user to enter a quantity
on the next page. Is this the best/only solution? Thank you!
--
- Michael J. Astrauskas