By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,395 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,395 IT Pros & Developers. It's quick & easy.

Problem in displaying TextArea message on page

P: 6
I just want to save textarea message in database and display on page.
When i insert message,
example 1) Hello
2) World
this message goes to database and when i trying to retrive this message, it show on one line that is, 1)Hello 2)World
How could i recognise '\r' and '\n' inside of data. And will display line by line as a orignal message
Feb 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Welcome to The Scripts.

Replace the newline characters in the data with <br> tags.
Feb 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.