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