Posted by Paul Lautman on 06/12/06 16:18
deko wrote:
>> 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.
>
> but what about all the html?
The html will be in the page that it is redirected to.
If you are redirecting there is no need to send any html for THIS page
because you are redirecting to a different page.
>
> the page looks like this:
>
> DOCTYPE ...
> <html>
> <head>
> ...
> javascript...
> </head>
> <body>
> <html>
> all kinds of html...
> <form>
> <?php
> ...
>>
> ...
> </form>
> more html...
> </html>
> </body>
>
> I want the redirect to happen only if the form is filled out
> correctly, so the redirect should, I think, go just after the form
> code.
[Back to original message]
|