textarea output

I have a form with a text area, if i type something in it and say its got 2 or 3 paragraph it output as a single paragraph. Is there a way around this so it output the format it as been inputted in

You can use [http://www.php.net/nl2br]nl2br()[/url] to turn textual line breaks into HTML line breaks. If your output format is different from HTML, I’m afraid you’ll have to use [http://www.php.net/str_replace]str_replace()[/url].

Sponsor our Newsletter | Privacy Policy | Terms of Service