Jump to content


Photo

Formatted text


  • Please log in to reply
2 replies to this topic

#1 Madatan

Madatan
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 10 August 2006 - 12:16 PM

Okey, so I got a news-system with an admin area and all that, now I just want the news system to format the text a little bit by itself. So if I write:

Hello my name is George!

Good bye!

I dont want to have to add the two
<br><br>
to make it a new row and another row between the two sentences. Anyone following? :P

#2 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 10 August 2006 - 12:19 PM

Use this: nl2br($variable);

#3 Madatan

Madatan
  • Members
  • PipPipPip
  • Advanced Member
  • 51 posts

Posted 10 August 2006 - 12:21 PM

Thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users