Restore data entered in "textarea" as it is

A

Anonymous

Guest
Dear All,

It was amazing to have superb help from all of you !!

I have typical problem..

An Employee's address is entered in "textarea", multiline text box and want to display it (onn retrieval) the way user has entered !!

The user types a sentence / line of address and then press "ENTER" key.
The data seen on the screen (to the user who is entering text) is in separate lines delimited by <crlf> or enter key.

When I store this data into field type "varchar" , I get single string and I am unable to display the data the way user has entered...

Please guide me as how do I store this data and how the same can be displayed in the same manner as entered by user.

I am open to any changes, usage of javascript etc.

Exaple :
User Enters data as follow

Vikas Athavale
111111, 2
33333, 444444
55555
66666

When I display it the same is displayed as
111111, 2 33333, 444444 55555 66666

Please help !!

with regards
Vikas Athavale
 
To make a new line in a text area you have to use the html entity for a new line character which is
, not <br> because they don't work in text areas!!!
 
Back
Top