Header Problem

From: Date: Sat, 26 Apr 2003 06:09:06 +0000
Subject: Header Problem
Groups: php.general 
Request: Send a blank email to php-general+get-145334@lists.php.net to get a copy of this message
I think there should be a simple solution to this, but hopefully someone can help me figure out why I get the following error. Warning: Cannot modify header information - headers already sent by (output started at /web/sites.coldfusion/samples.cinofusion/Metabolic/Admin/Support/supportreq2 .php:8) in /web/sites.coldfusion/samples.cinofusion/Metabolic/Admin/Support/supportreq2 .php on line 22 <? if ($_COOKIE[auth] != "ok") { header("Location: ../login.php"); exit; } ?> <? $today = date("l, F j, Y H:i:s A"); $msg = "Support Request From Metabolic Research Center\n"; $msg .= "$_POST[Company]\n$_POST[Name]\n$_POST[Address]\n$_POST[City]\n"; $msg .= "$_POST[Phone]\n$_POST[Email]\n$_POST[URL]\n"; $msg .= "$_POST[Help]\n"; $msg .= "$today\n$todaytime"; $to = "support@cinofusion.com"; $subject = "Metabolic Research Center Support Request"; $mailheaders = "From: $_POST[Email]"; mail($to, $subject, $msg, $mailheaders); ?> <? header("Location: supportreq3.php"); exit; ?> Thanks

« previous php.general (#145334) next »