Link to home
Start Free TrialLog in
Avatar of markmchugh
markmchugh

asked on

displaying new line characters

I am taking information on a form using text areas, when i output this information the new line characters are not being displayed, how do i display this information exactly as it is inputted?
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you don't see the line breaks, the data is being saved or submitted without them. What attributes on the textarea do you have set?


wrap="off" is what I would recommend.




<TEXTAREA WRAP = sWrap ... > 

sWrap = String that specifies one of the following values:

soft - Text is displayed with wordwrapping and submitted without carriage returns and line feeds.
hard - Text is displayed with wordwrapping and submitted with soft returns and line feeds.
off - Wordwrapping is disabled. The lines appear exactly as the user types them.