|
Posted by Paul Lautman on 06/12/06 15:37
You must ensure that there is no blank space or empty lines, outside of the
<?php ?> braces. Any such empty space will be sent and will cause headers to
already be sent.
Make sure that <?php is the very first thing on the very first line of the
file.
deko wrote:
> I tried this:
>
> <?php
>
> $valid_message = true;
>
> if ($valid_message)
> {
> header("Location:http://bubba/send-confirm.php");
> exit();
> }
>>
>
> And still got this:
>
> Warning: Cannot add header information - headers already sent by
> (output started ...
>
> Can I redirect another way?
>
> The headers, probably, are being sent in the header section of the
> page.
> Can this block of code be put above the DOCTYPE statement?
>
> But then, how would the value of the $valid_message variable get set?
Navigation:
[Reply to this message]
|