Email Form Scripting Error Help
am 03.11.2007 18:33:54 von The Merg
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
--
Today's problems don't worry me,
I haven't solved yesterday's yet.
Re: Email Form Scripting Error Help
am 03.11.2007 19:14:22 von Jerry Stuckle
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
>
session_start(), headers, etc. must be sent before ANY output is sent to
the browser. This includes white space - or anything else.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: Email Form Scripting Error Help
am 04.11.2007 08:18:14 von Chris Gorospe
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.