Patrik Fomin <mailto:[EMAIL PROTECTED]> on Wednesday, July 30, 2003 3:46 PM said:
> and when i retrive the text from the database it looks like this: > TestTestHello > > is there anyway to save (enter formattions)? Well you've left out some important information so I'm going to use my detective skills here. 1. Are you printing this text to the page? Or are you... 2. displaying it within in another (or same) textarea? If you're doing #1, the reason is because the browser doesn't interpret \n as a new line on the screen, only in the source code. Therefore you need to send your data through nl2br() first. That will replace all the \n into <br>. If you're doing #2 you shouldn't have any problems because the textarea treats \n as a newline unlike case #1. If indeed you are doing #2 and you are still getting bad results you're probably doing something somewhere else, in which case you should submit some code. hth, chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php