Wang Feng wrote:
The page source shows:

************************************
<html><body></body></html>
************************************

The problem might be right here --------------+ (closing html tag) |
<html>                                      |
<head><title>Hello World Program</title></html>
<body>
<?php
 echo ("this is the simplest, an SGML processing instruction\n");
 echo "This spans
 multiple lines. The newlines will be
 output as well";
 echo "This spans\nmultiple lines. The newlines will be\noutput as well.";

?>
</body>
</html>
******************************************

Simple:


<html>
<head><title>Hello World Program</title>
<body>
<?php
echo ("this is the simplest, an SGML processing instruction<br>");
echo "This spans<br>multiple lines. The newlines will be<br>output as well";
echo "This spans<br>multiple lines. The newlines will be<br>output as well.";


?>
</body>
</html>

In html you cannot use newlines for formating, use <br> if you need newline. You can use <pre> tag for preformated text however.


So, what's the problem here?



cheers,


feng


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to