Re: formatting paragraphs in to strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, June 13, 2005 12:06 pm, Paul Nowosielski said:
>  I'm having a perplexing problem. I'm gather data through a <textarea>
> html from field and dumping it to MySQL.
>
>  I want to display the data as a long string with no carriage returns or
> line breaks in a dhtml div window.

What styles have you applied to the div and surrounding elements?

> The problem I'm have is that the form data is remembering the carriage
> returns. I tried using trim() and rtrim() with no luck. The data is
> still formatted exactly like it was inputed.

That sounds like PRE tag (or 'pre' style) or perhaps http://php.net/nl2br
is being used when you don't really want that.

> Any ideas why this is happening and how I can format the text properly??

Show us actual output, like a URL for better guesses.

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux