Connecting Tech Pros Worldwide Forums | Help | Site Map

Email Form Scripting Error Help

Comcast
Guest
 
Posts: n/a
#1: Nov 3 '07
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.




Jerry Stuckle
Guest
 
Posts: n/a
#2: Nov 3 '07

re: Email Form Scripting Error Help


Comcast wrote:
Quote:
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
==================

Chris Gorospe
Guest
 
Posts: n/a
#3: Nov 4 '07

re: Email Form Scripting Error Help


Comcast wrote:
Quote:
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.
Closed Thread