Richard Korts
asked on
php - headers sent??
I get this:
Warning: Cannot modify header information - headers already sent by (output started at /home/rkassoc/public_html/ Houston/sa ve_to_sess ion.php:65 ) in /home/rkassoc/public_html/ Houston/po st_form.ph p on line 76
Attached is post_form.php & save_to_session.php
How does it think line 65 of save_to_session.php (the closing php tag) is sending a header?
How do I fix?
Thanks
post_form.php
save_to_session.php
Warning: Cannot modify header information - headers already sent by (output started at /home/rkassoc/public_html/
Attached is post_form.php & save_to_session.php
How does it think line 65 of save_to_session.php (the closing php tag) is sending a header?
How do I fix?
Thanks
post_form.php
save_to_session.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And turn on 'error_reporting' in 'post_form.php'. Always. And 'save_to_session.php' is saving a lot of &_POST data to $_SESSION variables without doing any checking. If one of the indexes for the &_POST data is missing, it will cause an error by sending an error message to the browser before your 'header' statements at the end of 'post_form.php'.
Try this ;)
Just remove closing PHP tags from save_to_session.php
Just remove closing PHP tags from save_to_session.php
ASKER
I actually thought about you and your comment (on some other question) about the closing php tag.
I'll try it tomorrow. I'm about 98% sure that will do it.
Richard