You are here: Re: [PHP] formatting paragraphs in to strings « PHP « IT news, forums, messages
Re: [PHP] formatting paragraphs in to strings

Posted by "Richard Lynch" on 06/14/05 00:11

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация