Re: Trouble with Formatting Paragraphs

From: Date: Wed, 20 Apr 2005 08:27:05 +0000
Subject: Re: Trouble with Formatting Paragraphs
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-16004@lists.php.net to get a copy of this message
toad78@netzero.net wrote:
I'm having trouble formatting paragraphs within PHP. I have a story that was inserted using an online web form. For each new paragraph created, I want PHP to display those broken paragraphs on a web page instead of it coming up with one <p> tag and a bunch of <br> tags. I'm trying to use CSS to indent each paragraph, but PHP is drawing the story into one <p> and using <br> tags to break the paragraphs. I want all the paragraphs to be indented. Any way to get around this? Heather Technically, PHP does nothing unless you tell it to. So the trick here is to figure out what you've told it to do now that we know what you meant to tell it to do. Do you have the code from the web form the paragraphs are submitted to? How and where is the data retrieved for display by PHP? Is it from a database table that stored the web form submitted data, or directly from the web form?
-- Ryan Grange

« previous php.install (#16004) next »