Re: read and modified getting data

From: Date: Mon, 23 Feb 2004 10:35:00 +0000
Subject: Re: read and modified getting data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178519@lists.php.net to get a copy of this message
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

« previous php.general (#178519) next »