Re: redirect without using header
| From: | 1LT John W. Holmes | Date: | Wed, 13 Nov 2002 13:09:55 +0000 |
| Subject: | Re: redirect without using header | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124205@lists.php.net to get a copy of this message | ||
> Hi there,
>
> Is there a way to do redirect to another page without
> using the header function.
>
> I am getting an error by using header but I couldn't
> find any part of my code that output anything before
> using header.
The error message tells you where output was started. It says something like
"output started in /path/to/file.php:XXX" where XXX is the line number of
that file that created output.
If you show some of your code, it'll help.
Otherwise, workarounds include output buffering and javascript.
---John Holmes...