You are here: Re: add item to shopping cart problem « PHP Programming Language « IT news, forums, messages
Re: add item to shopping cart problem

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]


Удаленная работа для программистов  •  Как заработать на 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация