You cannot have ANY output b4 sending a header unless you are buffering your
output.  In your example you are sending HTML before your redirect - the
redirect has to happen before you do any kind of HTML or any characters that
would get output to the browser.

On 1/16/03 12:40 PM, "Denis L. Menezes" <[EMAIL PROTECTED]> wrote:

> I ahve tried everything jason. It says that there should be no output before
> the header().
> 
> I cannot still find the error. Can you please help in locating the error?
> 
> thanks
> Denis
> ----- Original Message -----
> From: "Jason Wong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 17, 2003 1:10 AM
> Subject: Re: [PHP] Redirecting - here is the code
> 
> 
>> On Friday 17 January 2003 01:07, Denis L. Menezes wrote:
>>> I tried. But I get an error as follows :
>>> 
>>> Warning: Cannot add header information - headers already sent by (output
>> 
>> Try searching the archives on the above error.
>> 
>> --
>> Jason Wong -> Gremlins Associates -> www.gremlins.biz
>> Open Source Software Systems Integrators
>> * Web Design & Hosting * Internet & Intranet Applications Development *
>> 
>> /*
>> Stenderup's Law:
>> The sooner you fall behind, the more time you will have to catch up.
>> */
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--
Cheers

Mike Morton

****************************************************
*
*  E-Commerce for Small Business
*  http://www.dxstorm.com
*
* DXSTORM.COM
* 824 Winston Churchill Blvd,
* Oakville, ON, CA L6J 7X2
* Tel: 905-842-8262
* Fax: 905-842-3255
* Toll Free: 1-877-397-8676
*
****************************************************

"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine

Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to