Hi.
I have form that has a text box. I want insert unformatted text into the database.
Even if the user gives an carriage return or New line feed in the database it should be stored as on single line without any formatting.
I just want to remove
New Line Feed(\n)
Carriage Return(\r)
spaces at the begin and end of the string.
Eg:
If i have
text1(enter key pressed)
text2(enter key pressed)
text3(enter key pressed)
Blank space
Blank space
I want this to be stored in the DB as:
text1 text2 text3
Could someone help me with this?
Thanks