I'm displaying HTML and linebreaks are not working using "\r\n" or just one of the other.
<HTML><BODY>
text here
<?php print "\r\n"; ?>
more text
There is no line break in the above example.......
Line breaks not working
Started by dirkfirst, Jun 12 2006 02:06 PM
4 replies to this topic
#1
Posted 12 June 2006 - 02:06 PM
|
|
|
#2
Guest_WebScott_*
Posted 12 June 2006 - 03:07 PM
Guest_WebScott_*
HTML ignores whitespace. You need to use a <BR> tag in your output.
#3
Posted 12 June 2006 - 03:08 PM
Line breaks will not work between HTML statements.
You can use the <PRE> function to enable this
<HTML><BODY>
text here
<pre>
<?php print "\r\n"; ?>
</pre>
more text
using just \r\n will result in a linebreak but not a <BR>. your browser will register this as whitespace and remove it.
You can use the <PRE> function to enable this
<HTML><BODY>
text here
<pre>
<?php print "\r\n"; ?>
</pre>
more text
using just \r\n will result in a linebreak but not a <BR>. your browser will register this as whitespace and remove it.
#4
Posted 12 June 2006 - 03:09 PM
WebScott said:
HTML ignores whitespace. You need to use a <BR> tag in your output.
Beat me to the punch line!
#5
Posted 16 June 2006 - 02:20 PM
Oh, stupid me. I wasn't even thinking about that. I haven't even messed with the code since I posted this. I'm going to fix that now.
Thank you for your help all!
Thank you for your help all!


Sign In
Create Account


Back to top









