RE: [PHP] if cant use header what should i use? or how to do this?
| From: | John Holmes | Date: | Sat, 04 May 2002 02:59:29 +0000 |
| Subject: | RE: [PHP] if cant use header what should i use? or how to do this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96003@lists.php.net to get a copy of this message | ||
> else if($do_cancel) {
> Header("Location: menu?pg=news"); <<---- wrong
Why can't you just check for $do_cancel at the beginning of the script.
If you really have to re-direct to another page, why do you have to
ouput anything before hand? It's not going to be shown, anyhow. Any page
with this problem needs to have it's logic rethought.
If you can't or are unwilling to do that, then use output buffering.
---John Holmes...