PDA

View Full Version : Taking the value of a text area ...


Mc Ghoush
Tue 14th Aug '01, 12:55pm
When I pass the value of a TEXTAREA to a variable and display it, I get another form of its text, for instace:
When I write :
Hi,
My name is.....




I get:
Hi, My name is........

How can i pass the same text form .....

johno
Tue 14th Aug '01, 3:08pm
actually you probably get the same thing, but in HTML you would need a <br> to display a newline.

Mark Hensler
Tue 14th Aug '01, 3:13pm
is this what you need:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=25257

Mc Ghoush
Wed 15th Aug '01, 6:01am
Yes ..

Thank you ...

bazet
Fri 17th Aug '01, 6:50am
use nlbr()


$textarea=nlbr($textarea);

sLYsHARk
Fri 17th Aug '01, 3:47pm
What are the differences between nlbr and nl2br?

Mark Hensler
Sat 18th Aug '01, 3:05am
The difference is nlbr() is not a PHP function. It's most likely a typo for nl2br().