How to preserve line breaks and change fonts
By Sergey Skudaev
![]()
![]()
![]()
![]()
![]()
//post_story.php
//act_post_story.php:
if(isset($_POST['story']))
$story=$_POST['story'];
$story='
in style.css:
#fn {
font-family: Impact, Charcoal, sans-serif;
font-size:20px;
}
textarea.posted {
font-family: Impact, Charcoal, sans-serif;
}
'; Display story on web page and in text area with preserved line breaks and changed fonts'.$story.'
Did you find information useful?
Send to your friend a link to this page
Please rate the tutorial
Learn Visual Basic 6.0 [Kindle Edition] $1.99
How to Build Your Own Web Site from Scratch [Kindle Edition] $1.99
| Comments | |
|---|---|
- Home
- howto_preserve_line_breaks
- Batch Files
- Java Properties
- Form Validation
- Display Image PHP
- Upload File PHP
- phpMyAdmin
- Environment Variables
- Delete Trojan horse
- PHP Code Examples
- Learn PHP
- Modeless Popup
- Read Screen Resolution
- PHP Class Example
- Page View Counter
- Display Any Table
- Read csv file
- PHP Array Functions
- Array of Fields
- GET mess
- Array of Check boxes
- PHP and MS Access
- User_Auth. Demo
- PHP App Example
- PHP + Oracle 1
- PHP + Oracle 2
- Image Collection
- Create Gallery
- Block Spam Post
- $_REQUEST,$_SESSION
- Headers Allredy Sent
- Virtual Server
- Apache:OS 10048
- Set Shopping Cart
- My Best CSS Layout
- Database Design
- Password Keeper
- MySQL and Excel
- Learn MySQL
- Learn SQL
- Learn C++
- Learn Java
- Learn Visual Basic
- Web Site Tips
- Site map
- Registration
Web programming Tips