• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Return in a Text Box as a New Line?

Niaad

New Member
I'm sure this is a very simple thing to do, since every major forum out there manages it.

All I want to do is make it so when somebody presses enter in a multiline text box, it actually shows up that way when it's saved to the database, and then displayed on a page.

I think this is done by reading where the user pressed the enter key, and then replacing that with a <br> tag (or \n). However, I'm not really sure how to go about making this work...
 
Back
Top