I have a page that uses a textarea to submit a comment. Once submitted the comment is redisplayed in the textarea as well as in a table above it. The problem is this:
The textarea keeps the paragraph formatting but the <TD> in the table does not. Any ideas?
That's because HTML doesn't interpret hard returns and consecutive spaces literally. After submitting use your server-side-language of choice to convert all consecutive spaces to and all hard returns to <br /> tags. As for how to do this - you would need to ask that in the forum of what server-side-language you use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.