...

View Full Version : Not having to enter <br>



tek
04-27-2006, 10:28 PM
First off, I couldn't find anything about this, I know I suck at searching so if you know a place where I can find the answer, great.

The question:

I created a "news system" for someone, but ofcourse you have to add <br> to the end of all sentences to tell the html a new sentence starts. How do I tell my script to automatically add a <br> whenever someone ends a line in a text area or skips a line in a text area?

GJay
04-27-2006, 10:31 PM
http://php.net/nl2br

converts newlines to <br>s (or <br />s in more recent PHP versions)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum