How to preserve line breaks and change fonts

By Sergey Skudaev

+++++

Post your story
//post_story.php //act_post_story.php: if(isset($_POST['story'])) $story=$_POST['story']; $story='
'.$story.'
'; Display story on web page and in text area with preserved line breaks and changed fonts
in style.css: #fn { font-family: Impact, Charcoal, sans-serif; font-size:20px; } textarea.posted { font-family: Impact, Charcoal, sans-serif; }

Did you find information useful?
Send to your friend a link to this page

Please rate the tutorial

1 2 3 4 5 6 7 8 9 10



Learn Visual Basic 6.0 [Kindle Edition] $1.99

How to Build Your Own Web Site from Scratch [Kindle Edition] $1.99

Comments
 
Register to add comments ( 1000 char ) for howto_preserve_line_breaks.php.