Re: question PHP - HTML

From: Date: Mon, 26 Jan 2004 14:16:47 +0000
Subject: Re: question PHP - HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175756@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you "View Source" in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a <br> tag for a newline and will not read a \n as a <br>. So, use <br> instead of \n. Viviane Hu wrote: | Hi, | | Je try to use PHP. | Je wrote to this code | <?php
|       echo "hello \n";
|       echo "viviane \n";
| ?> | I expect a print out like :
|    hello
|    viviane
| | but the print out (IE) is "hello viviane" | | Could you help please | | thinks. | Viviane | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAFSFOIcIs3CP5DxwRAqaTAJ4wHGXKgKiC8oTmZZXydFDQJMz5DQCfU4E8 7Ymsr37Df0hlIqR0UgPq0pI= =Z6+n -----END PGP SIGNATURE-----

« previous php.general (#175756) next »