Andy11548 Posted December 6, 2010 Share Posted December 6, 2010 How do I make it so that when I press the 'Return/Enter' key it is recognised as a new line?. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 6, 2010 Share Posted December 6, 2010 Clarify, please? Quote Link to comment Share on other sites More sharing options...
haku Posted December 6, 2010 Share Posted December 6, 2010 If you are talking about a text area, you need to pass it through a server-side function that will convert line breaks to <br> tags. If you are using php, you can use nl2br(). Quote Link to comment Share on other sites More sharing options...
Andy11548 Posted December 6, 2010 Author Share Posted December 6, 2010 If you are talking about a text area, you need to pass it through a server-side function that will convert line breaks to <br> tags. If you are using php, you can use nl2br(). Thanks very much, this works great . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.