|
Posted by Rik Wasmus on 09/04/07 23:23
On Tue, 04 Sep 2007 22:12:37 +0200, shimmyshack <matt.farey@gmail.com>
wrote:
> On Sep 4, 8:44 pm, mcser...@yahoo.com wrote:
>> I know this is a recurring problem that has been addressed here
>> before, but even after reading all that has gone before, I am still
>> stumped.
>>
>> I have a form that is designed to send data to a PHP page where is is
>> to be validated then read into a MySQL table. Once that is done, the
>> form is to send the user either back to the originating page, or to a
>> logout page.
>>
>> I have several versions of this setup on my site that work well, so
>> why should it not work on one page?
>>
>> I have checked for blanks and extra characters before and after <?php
>> and ?> tags. there are none.
>>
>> I have POSTed to a page with _only_ the following code: (Again- there
>> are no blanks or other characters either before or after.)
>>
>> <?php
>> header("location:www.foo.org/subdir/enterStuff.php");
>> ?>
>>
>> It still comes back with:
>> "Warning: Cannot modify header information - headers already sent by
>> (output started at /var/www/foo.org/html/subdir/postStuff.php:1) in /
>> var/www/foo.org/html/Events/postStuff.php on line 2."
>>
>> I have stripped the code (a combination of php and javascript) in the
>> orginating file of all extraneous stuff. Still not getting anywhere.
>> I tried adding ob_start() and ob_end_flush() , still no joy.
>>
>> If I leave out the "header()" and "exit()" lines, the page processes
>> and stores the information correctly and without any reported errors.
>>
>> I think that covers all the advise I've seen here, so my question is:
>> Does anyone know what else can cause this problem?
>>
>> MC
>
> you could have autoprepend on, set to prepend a file with response
> body content in it.
I'm not sure, but wouldn't the error say it was started on line 0 for
internal reasons?
--
Rik Wasmus
[Back to original message]
|