Jump to content

Archived

This topic is now archived and is closed to further replies.

desithugg

textareas

Recommended Posts

umm im coding a forum and using textarea's to post/reply..In a textarea when you press enter it starts a new line.But when i post and its recorded in mysql.and i try to view it.it doesnot start a new line it just keeps going in one line.

Share this post


Link to post
Share on other sites
nl2br();
will convert all newlines (\n) into BR tags (<br />)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.