Reply to Re: add item to shopping cart problem

Your name:

Reply:


Posted by Josef Blφsl on 07/19/05 16:05

Colin McKinnon schrieb:
> 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.

thanks a lot... good idea

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация