Posted by Martien van Wanrooij on 05/13/07 15:24
"purcaholic" <purcaholic@googlemail.com> schreef in bericht
news:1179068159.700014.8640@w5g2000hsg.googlegroups.com...
> header("Location: ./meerinfo.php");
> exit;
> [/snap]
>
> The redirectiom should done before any output is send to client.
Thank you purcaholic, both Jerry's and your suggestions give me a good idea
about how to handle it.
BTW the meerinfo.php in my example is a page that shows the article and that
contains a link to the shopping cart. 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?
Thx again,
Martien.
[Back to original message]
|