Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Formatting Question

Status
Not open for further replies.

rhnewfie

Programmer
Jun 14, 2001
267
CA
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 &nbsp; 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.

-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top