Just use jeff's example on the string before you put it into the textbox...

<cfset description=Replace(txtcomment,"'","''","all")>
<cfset description=Replace(txtcomment,"""","""""","all">

then put temp into the textbox via the value="#description#" attribute of
the textbox

<input type="text" name="Task" value="#Description#" size="70"
maxlength="600">


Chris Walsh

-----Original Message-----
From: Nichols, Robert H. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 9:51 AM
To: Fusebox
Subject: RE: Strange characters


okay, let me restate -- I have a string of characters*:

-->Assign the patient to one of several hundred "diagnosis-related groups,"
or DRG's, using appropriate computer software. <--

This saves and can be found in the database just fine.  Now when I try to
output this text into a text box:

<input type="text" name="Task" value="#Description#" size="70"
maxlength="600">

The string is truncated to: 

-->Assign the patient to one of several hundred <--

* - BTW, I used --> to be the beginning of the string and <-- to be the end.

Robert H. Nichols
Web Developer
Center for Engineering & Environmental Technologies
Information Delivery Systems <http://ids.rti.org>
Research Triangle Institute
Voice: 919-541-8009          Fax: 919-541-6936
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to