hi,
the error message is caused by "print()" and "echo()",
since we are now adding lines into the header part of the "html", we can't output anything (even spaces/new line) before add header.
here is the simple structure for a html file sent out form the server
---------begin--------------
[header] // will not show when view source.
// here also will store cookies infomation.
Content-type: html/text // usually is text/html.
[/header]
[content] // will be show when view source
<head>....</head>
<body>....</body>
[/content]
----------end---------------
we are now using header() to add information into the header part,
and echo() or print() will output to the content part.
i hope it is helpful.
regs,
Ziong
p.s. Pls correct me if i'm wrong. 😛