Reply to Re: Problem with HTTP_REFERER when clicking on refresh button

Your name:

Reply:


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]


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

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