You can also use the nl2br() function to convert newlines to html breaks
before displaying.
PS. You might want to use htmlspecialchars() too!
Read the manual http://www.php.net/
,----
| Regarding text area how to manipulate the new line and line feed
| correctly. so that the line changes in display also as in input.
`----
What display? you mean when you 'echo' whatever textarea out in PHP
you dont see the multilines? use '<pre>' in that case.