Quotes and the proper use of, come up quite frequently on this list. I
thought I would pass on today's CF tip from TipWorld (highly recommended
BTW)...
QUOTES AND DE()
As you've probably discovered yourself, quotes can be a pain during
processing. ColdFusion helps out by providing a function that lets you
Delay Evaluation: DE(). Basically, what it does is wrap the string in
double quotes with any quotes in the string escaped.
Suppose you want to display to the user a string wrapped in quotation
marks. You can quickly and easily do so by including in your code
something similar to the following:
<CFOUTPUT>
You entered #DE(form.input1)# into the field.
</CFOUTPUT>
In this case, say the user typed the string (including the single
quotes)
Three 'blind' mice
ColdFusion would display
"Three 'blind' mice"
Notice that this function works with both single and double quotation
marks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Reich
Backsoft� Corporation
6960 Professional Parkway East
Suite 100
Sarasota, Florida 34240
Toll Free: (888) 222-6047
Phone: (941) 907-6655 - Ext.1038
Fax: (941) 907-6643
email: [EMAIL PROTECTED]
web: http://www.backsoft.com
"Any sufficiently advanced technology
is indistinguishable from magic."
- Arthur C. Clarke
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.