Re: Cannot add header information error
| From: | Leif K-Brooks | Date: | Thu, 26 Dec 2002 17:01:44 +0000 |
| Subject: | Re: Cannot add header information error | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24389@lists.php.net to get a copy of this message | ||
You can't add headers after you've outputted anything. Without seeing the class page, I'd guess there's a space after the ?>. Either remove that or use output buffering.
Petre NICOARA wrote:
Hi guys I have this error when I tried to use a sign-up form. The thing is that I use some classes for database interaction, and I respond by return "Values"; to the functions. Also, in line 18 in page.php I have this Header("Location: page1.php?string=value"); The Line 363 marks the class end ?> Warning: Cannot add header information - headers already sent by (output started at classes/member_class.php:363) in F:\Web Applications\My work\site\page.php on line 18 Could someone explain what is happening, the code is clear. Thanks-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.