Re: Quickform textarea removes returns?

From: Date: Thu, 11 Jan 2007 02:28:53 +0000
Subject: Re: Quickform textarea removes returns?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26316@lists.php.net to get a copy of this message
On 1/10/07, rav k <rav220@hotmail.com> wrote:
Hi My form works ok but when I add returns in my text (with enter) the code doesn't save this. So my text: Hel lo Will show as: Hel lo How can I correct this so returns are shown?
Likely the line breaks are still there, you'r ejust not displaying it correctly. Remember that text line breaks don't show as line breaks when displayed in HTML. Try wrapping it with <pre></pre> or using nl2br(). -- Justin Patrin

« previous php.pear.general (#26316) next »