Posts: 1,832
Location: Somewhere else entirely
|
Do you want to allow any kind of formatting, or do you just want text with line breaks?
If so you can use a text area, feeding into a database field of type TEXT, but before you put it in to the database, (or after it comes out) you call nl2br() on the text, which results in all the newlines (\n) being replaced with '<br />' and the line breaks appearing on the page.
If you want to have links or color tags or anything, it gets more complex and you'll either need to do it yourself with regexs or go and pinch some code from a blog or forum script .
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';
Please login or register to view this content. Registration is FREE (aka MSN handwriting for forums)
|