Posted by Chris Gorospe on 11/04/07 07:18
Comcast wrote:
> I am using a form that uses PHP to create an e-mail and send it off. When
> the script runs, I get an error page, although the e-mail is sent off. The
> error I am getting is:
>
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at
> /home/content/website/html/contact/scformproc.php:1) in
> /home/content/website/html/contact/scformproc.php on line 51
> ?
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/content/website/html/contact/scformproc.php:1) in
> /home/content/website/html/contact/scformproc.php on line 431
>
> Warning: Cannot modify header information - headers already sent by (output
> started at /home/content/website/html/contact/scformproc.php:1) in
> /home/content/website/html/contact/scformproc.php on line 496
>
>
> The form in question is located at
> http://www.themerg.net/contact/scform.php.
>
> Any help would be appreciated.
>
> Thanks,
> Merg
>
Make sure you put 'session_start();' at the very top of your script.
Directly under that should be your 'header();' functions and no where else.
[Back to original message]
|