Carriage Return on forums

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
timmy
Forum Newbie
Posts: 15
Joined: Fri Apr 19, 2002 9:45 am
Location: Calgary, AB

Carriage Return on forums

Post by timmy »

I'm developing a news article application for a client. I would like them to be able to have paragraphs in their articles, and have them show up properly formatted. I've noticed when posting in this forum, if you press "return",


you get the proper spaces when the post is displayed.


I looked at the source, and there is a "<br />" tag after each carriage return on the viwed post. How would I accomplish this? I'm currently lookng through the code for phpbb, and it's quite alot of stuff, so any suggestions to speed up my discovery would greatly help, even if you would point me in the right direction as to what part of the phpbb code I would look at.

tia!
dusty
Forum Contributor
Posts: 122
Joined: Sun Apr 28, 2002 9:52 pm
Location: Portsmouth, VA

Post by dusty »

nl2br()
timmy
Forum Newbie
Posts: 15
Joined: Fri Apr 19, 2002 9:45 am
Location: Calgary, AB

Post by timmy »

sweet, thanks!
Post Reply