format of text in a textarea

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
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

format of text in a textarea

Post by nigma »

Hey,

I have a form that has a textarea spot. Now if I enter a few lines of text in there, then press [enter] a few times, write some more text, then submit it. On the next page when I take the information they entered in the text area and store it in a MySQL database field with the property of that field being text. Then later on, I access that field and print out what they wrote, but when I do this all blank lines are ignored. Do you know why?

Thanks for any help provided!
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

I get this error while trying to use n12br:
Fatal error: Call to undefined function: ni2br() in /path/to/file
DynPHP
Forum Newbie
Posts: 10
Joined: Tue Mar 04, 2003 8:25 am

Post by DynPHP »

thats because it's an "L" not a "1"
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Lol, I am so sorry. I tried i and 1 but neither worked. Thanks!
Post Reply