Hello Tommi,

Monday, February 23, 2004, 10:25:10 AM, you wrote:

TV> So, input contains spaces, linefeeds and so on...

TV> When I make page, which read data from this textarea-field, data
TV> came from without spaces and linefeeds. How to correct this
TV> problem?

The characters will still actually be there (view the source to see)
it's just that HTML won't render them the way you're expecting. The
spaces will be converted into a single space and the
line-feeds/carriage returns won't do anything either unless you're
using a fixed-width font.

Two choices: Convert the non-displaying characters to their HTML
equivalents (i.e. space to &nbsp;) or wrap the text in a <pre> tag.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to