Re: if cant use header what should i use? or how to do this?
| From: | Miguel Cruz | Date: | Fri, 03 May 2002 23:28:28 +0000 |
| Subject: | Re: 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-95997@lists.php.net to get a copy of this message | ||
On Fri, 3 May 2002, Mantas Kriauciunas wrote:
> I have code like this(code starts at 100 line and has lots of
> outputs):
> Header("Location: menu?pg=news"); <<---- wrong
> i have problem with Header, how should i change it? any suggestions?
> is there any other function to redirect? or should i make some
> fucntion my self..or what shoud i do ?
> thanks
Two options:
1) Read about output buffering in the manual.
2) Fix your code so it does its checking before outputting anything.
miguel