Cannot add header information

From: Date: Wed, 01 May 2002 13:55:41 +0000
Subject: Cannot add header information
Groups: php.general 
Request: Send a blank email to php-general+get-95519@lists.php.net to get a copy of this message
You CANNOT send anything to the browser before you set a cookie or start a session. You are displaying most of an HTML file, headers, javascript, HTML, etc, and then trying to include() a file that sets a cookie. Not going to work. ---John Holmes... >Warning: Cannot add header information - headers already sent by (output >started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in >/home/omnidevi/omnidevices-www/s-cart/shop-head.phtml on line 40 > >I posted this error message a few days ago and got very helpful >answers...Unfortunately I can't locate the problem in my code...I was >running this exact same code on another server and it worked fine. I know >it's a lot to ask but can someone quickly review this 2 files to figure out >what I'm doing wrong.. > >many thanks

« previous php.general (#95519) next »