Re: Text Area Forms and How Data is Stored
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Text Area Forms and How Data is Stored

From: Zilla <mail.is.not@an.option>
Date: Wed Oct 12 2005 - 16:23:32 CEST

Robizzle wrote:
[snip]
> "this is a test. There is a new
> line between the words 'new' and 'line'"
>
> I end up with a news post that looks like "this is a test. There is a
> newline between the words 'new' and 'line'".
[snip]

My guess is that you don't convert newlines to <br>'s when you show the
posts. Html doesn't show a new line if there is just a newline. It needs
a <br> tag.

Take a look at this:

www.php.net/nl2br

Hope it helps.

Zilla.
Received on Tue Oct 18 02:40:41 2005