|
Posted by Colin McKinnon on 07/19/05 15:59
Josef Blösl wrote:
> hi folks!
>
> i have a cart link in all of my listed products on the site. when i
> press this link i will generate a url like this
>
>
http://www.mysite.com/index.htm?location=shop&view=cart&action=addtocart&productid=3
>
> after i press this link the site cart.php will be included and add the
> wanted product to the cart, and show the cart.
>
> my problem now is after the cart is showed with the new product in it,
> when i press the F5 key in the browser to refresh the site, the same
> product will added to the cart once more, because the previous generated
> url is unchanged in the browser.
>
> have anyone a idea how to fix this problem?
>
> thanx...
Yes - attach a random cookie (not a web cookie) to each request and ignore
requests where the cookie is already in the basket.
yawn.
C.
Navigation:
[Reply to this message]
|