You are here: Re: Problem with HTTP_REFERER when clicking on refresh button « PHP Programming Language « IT news, forums, messages
Re: Problem with HTTP_REFERER when clicking on refresh button

Posted by purcaholic on 05/13/07 18:05

"Martien van Wanrooij" <i...@martienvanwanrooij.nl> wrote:
> ... I suppose that the procedure you
> suggest is that "add to shopping cart" should be handled by a script
> "cart_handler.php" and that "cart_handler.php" should be redirected to
> "showshoppingcart.php" ?
> One more question: is the "exit" statement required or advisable even when a
> header(Location.. statement just has been executed?

Thats a good idea.
Use a "cart_handler.php" script, to add an article and redirect to
"showshoppingcart.php" which just displays content of shopping cart.

You can also use same Script to handle action for adding article to
cart and to displaying it. If an paramter "id" is send, add article to
session, redirect to itself without "id" parameter. If no parameter
"id" is send, display shoppingcart.

purcaholic

 

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

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