I'm trying to have users to submit their personal information through
a webform. One field there is "Address", for which I use TEXTAREA. The
input is then sucked into PHP, which treats it as a string with
occasional \n or \n\r characters. To display the address on the
webpage I need to replace those characters with "<br>".
What's the simplest way to do it?
P.S. I could use <pre> tag, but I don't like the fact that it gets the
text displayed in the fixed-width font.
Thank you.
Oleg*
nl2br()
AFAIR otherwise search php.net.
regards,
Andreas Hjordt