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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display a textfield on a table!

Status
Not open for further replies.

bluecoco

Programmer
Apr 30, 2001
4
0
0
AE
hi guys,
i have the followin' problem:

i used a textarea to store the followin' text in a sql database-field called 'f_comments':
LINE ONE.
LINE TWO.
LINE THREE.

i did display the contents of 'f_comments' on another textarea-box, i got the same format i entered:
LINE ONE.
LINE TWO.
LINE THREE.

but when i tried to display the contents of 'f_comments' on a table, i got the contents on one line as the followin':
LINE ONE.LINE TWO.LINE THREE.

i need to get 'f_comments' displayed on a table in the same format i entered.

does anyone know how to solve that problem?
with regards bluecoco >> never lose hope ..
 
This code shows you how to do an ASCII dump of a text area. The bottom line is that the end of each line will have an ASC 10 and 13 appended to the end of the line. You can use this information to parse out your lines and format them properly within your HTML.

For Other Great Coldfusion Tips Goto
<cfoutput>
#Form.q1#
</cfoutput>
<br>
<cfset maxx = Len(Form.q1)>
<cfoutput>
<CFLOOP from=&quot;1&quot; index=&quot;idx&quot; to=&quot;#maxx#&quot;>
#ASC(Mid(Form.q1, idx, 1))#<br>
</CFLOOP>
</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top