RE: [PHP-DB] Cannot add header information error

From: Date: Thu, 26 Dec 2002 07:22:25 +0000
Subject: RE: [PHP-DB] Cannot add header information error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-24374@lists.php.net to get a copy of this message
> 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 You can't send headers after you've started sending _any_ content to the browser. You start sending content in member_class.php on line 363. Either correct that or look into output buffering. Bottom line, if you're going to redirect to a new page, why do you need to display anything? You shouldn't... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.db (#24374) next »