Limiting space with css. PHP is used.?

Andrew

New member
Right I have a contact form when you submit this form it stores 3 pieces of information to 3 seperate sessions and then echos the sessions. This is all done with PHP and is fine.

The problem comes when I echo the session. They echo fine but if a user was to submit a long message it displays all on one line which recks the site layout how do I limit this paragraph with
PHP.

I have tried using css and echoing it and using css externally below is the PHP code for echoing
the session.

echo "<p class=\"paragraphs\">Message :".$_SESSION['message']. "</p>";

it just doesn't seem to respond to css. Any ideas would be great thanks.
The css.

p.paragraphs
{
width:500px;
font-family:"arial", san serif;
}

this paragraph is used elsewere on the site though and works fine it just doesn't seem to limit the PHP session.
 
Back
Top