Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Hwange
New Member
New Member



Joined: Nov 28, 2005
Posts: 7

PostPosted: Sat Dec 03, 2005 9:47 pm Reply with quote

Anyone know how I can display the <br> on screen.
I am new to php and not sure how to do this.

I know if I use

echo "This is a DoubleQuote \" ";

I get

This is a DoubleQuote "

But if I use

echo "This will start a new line \<br>";

I get

This will start a new line \

I want it to show

This will start a new line <br>
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Dec 03, 2005 10:10 pm Reply with quote

try echo "This will start a new line &lt;br>"; or some derivation thereof...

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Hwange







PostPosted: Sun Dec 04, 2005 6:16 am Reply with quote

montego wrote:
try echo "This will start a new line &lt;br>"; or some derivation thereof...


Thanks Montego exactly as u said done the job.
 
montego







PostPosted: Sun Dec 04, 2005 8:02 am Reply with quote

most excellent! Thank you for letting us know.

RavensScripts
 
Hwange







PostPosted: Sun Dec 04, 2005 8:25 am Reply with quote

Hey, this is cool.

If I email myself and just put <br> in the message, when I right click the email and select view source I see it is written as &lt;br&gt;

I tried echo "&lt;br&gt;"; and <br> was there.

This means that all I have to do is email what I want to echo and I get the answer myself.

Yet another use for email LOL

Thought it may be useful to anyone like myself who needs to find out what to put in the code.
 
JeFFb68CAM
New Member
New Member



Joined: Dec 11, 2005
Posts: 2

PostPosted: Sun Dec 11, 2005 3:31 pm Reply with quote

An easier way would be to use the <xmp> tag..

Like this:

<xmp><br></xmp>
 
View user's profile Send private message
montego







PostPosted: Mon Dec 12, 2005 4:05 pm Reply with quote

JeFFb68CAM wrote:
An easier way would be to use the <xmp> tag..

Like this:

<xmp><br></xmp>


Maybe so, but you may want to read this:
[ Only registered users can see links on this board! Get registered or login! ]
 
JeFFb68CAM







PostPosted: Mon Dec 12, 2005 4:35 pm Reply with quote

Yea I've read that somewhere before, so I guess if you are trying to go for compliance I wouldnt use it. But if it's for your personal use, it just makes things a lot easier.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©