|
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]
|