<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Fri, 24 Oct 2014 23:20:56 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-10-24T23:20:56Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Tempered encryption causing Decrypt to crash</title>
      <link>https://forums.adobe.com/thread/1617074</link>
      <description>&lt;!-- [DocumentBodyStart:6730b62c-23e4-46a8-8b99-7c658d677055] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have made an encryption of "auth" using AES as follows:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&amp;lt;cfset skey = generateSecretKey("AES")&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&lt;/td&gt;&lt;td style=";"&gt;&amp;lt;cfset regkey = encrypt("auth", skey, "AES", "hex")&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I attached the result for example to an URL&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.mydomain.com/authorization.htm?auth=34D3795AA3696B7F81AEFE414DCA7392FDCC50AFE9D0312B2B2530A985386B83" rel="nofollow"&gt;http://www.mydomain.com/authorization.htm?auth=34D3795AA3696B7F81AEFE414DCA7392FDCC50AFE9D 0312B2B2530A985386B83&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(auth is assign regkey&amp;nbsp;&amp;nbsp; i.e. ,,,,,,htm?auth=#regkey#)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This works perfectly under perfect condition.&amp;nbsp; However, if I go ahead and try to "hack" the code and make it shorter and change some characters like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.mydomain.com/authorization.htm?auth=453424AEFE414DCA7392FDCC50AFE9D0312B2B2530A985386B83" rel="nofollow"&gt;http://www.mydomain.com/authorization.htm?auth=453424AEFE414DCA7392FDCC50AFE9D0312B2B2530A 985386B83&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Decrypt function:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset theword=decrypt(url.auth, skey, "AES", "hex")&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;just crash! It throws an exception. Isn't it supposed to just return bad string rather than crashing?&amp;nbsp; This is pretty bad. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there way to check for the URL.auth before passing to Decrypt?&amp;nbsp; Thanks in advance.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6730b62c-23e4-46a8-8b99-7c658d677055] --&gt;&lt;img src='/beacon?t=1415919210676' /&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">decryption</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion9</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">decrypt</category>
      <pubDate>Fri, 24 Oct 2014 23:20:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1617074</guid>
      <dc:date>2014-10-24T23:20:56Z</dc:date>
      <clearspace:dateToText>2 weeks 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>CFwindow not working with secure URL</title>
      <link>https://forums.adobe.com/thread/1588779</link>
      <description>&lt;!-- [DocumentBodyStart:deb4c197-e6b5-45a8-963e-176e6b20e394] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I use the code&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt;&amp;lt;cfajaximport tags="cfform, cfmessagebox, cfwindow"&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt; &amp;lt;cfwindow bodystyle="background:white;font:12px/normal arial, Helvetica, sans-serif;" initShow="true" width="350" height="255" name="signin" center="true" resizable="false" draggable="false" source="login.htm"/&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and it is working fine.&amp;nbsp; The sign in window appears.&amp;nbsp; However, I want to change it to a secured URL by entering the full URL&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt;&amp;lt;cfajaximport tags="cfform, cfmessagebox, cfwindow"&amp;gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=";"&gt;&amp;nbsp;&amp;nbsp; &lt;/td&gt;&lt;td style=";"&gt;&lt;span&gt; &amp;lt;cfwindow bodystyle="background:white;font:12px/normal arial, Helvetica, sans-serif;" initShow="true" width="350" height="255" name="signin" enter="true" resizable="false" draggable="false" source="&lt;/span&gt;&lt;a class="jive-link-external-small" href="https://mydomain/login.htm" rel="nofollow"&gt;https://mydomain/login.htm&lt;/a&gt;&lt;span&gt;"/&amp;gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The pop up cfwindows shows blank.&amp;nbsp; Why is that?&amp;nbsp; Any help is appreciated.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:deb4c197-e6b5-45a8-963e-176e6b20e394] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfwindow</category>
      <pubDate>Tue, 30 Sep 2014 00:37:24 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1588779</guid>
      <dc:date>2014-09-30T00:37:24Z</dc:date>
      <clearspace:dateToText>1 month 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>26</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Problem with cfinput autosuggest and cfcomponent</title>
      <link>https://forums.adobe.com/thread/1587774</link>
      <description>&lt;!-- [DocumentBodyStart:a3a727b9-5a51-4532-89b1-01ae1b776f3f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am new to using cfcomponent and autosuggest.&amp;nbsp; I followed the sample given in the Adobe Help &lt;a class="jive-link-external-small" href="http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7a01.html#WSc3ff6d0ea77859461172e0811cbec22c24-720c" rel="nofollow"&gt;Adobe ColdFusion 9 * Using Ajax User Interface Components and Features&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, I am not getting the autosuggest to work at all.&amp;nbsp; This is what I did:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. I created a Suggestcfc.cfc under a subdirectory called "components" &lt;/p&gt;&lt;p&gt;The Suggestcfc.cfc is as follows:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfcomponent output="false"&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction name="getProduct" access="remote" returntype="array" output="false"&amp;gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfargument name="suggestvalue" required="true"&amp;gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var myarray = ArrayNew(1)&amp;gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfquery datasource="mydatabase"&amp;nbsp; name="getlist"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT DISTINCT productname FROM products&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE productname LIKE &amp;lt;cfqueryparam value="#suggestvalue#%" cfsqltype="cf_sql_varchar"&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cfquery&amp;gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfloop query="getlist"&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset arrayAppend(myarray, productname)&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cfloop&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfreturn myarray&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cffunction&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction name="init" output="false"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfreturn this&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cffunction&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2. I have a test.cfm as:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;lt;html xmlns="&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.w3.org/1999/xhtml" rel="nofollow"&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&lt;span&gt;"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;head&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;body&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset suggest = createObject("component", "components.Suggestcfc").init()&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfform&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfinput type="text" autosuggest="suggest.getProducts({cfautosuggestvalue})" name="string"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfform&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/body&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So when I run the test.cfm it only showed a box and when I started typing, nothing is being suggested (retrieve from the products table).&amp;nbsp; What am I doing wrong here?&amp;nbsp; Any help is appreciated.&amp;nbsp; Thanks in advance.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a3a727b9-5a51-4532-89b1-01ae1b776f3f] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">autosuggest</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfinput</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfcomponent</category>
      <pubDate>Mon, 29 Sep 2014 04:37:16 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1587774</guid>
      <dc:date>2014-09-29T04:37:16Z</dc:date>
      <clearspace:dateToText>1 month 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>CFINPUT VALIDATE INTEGER NOT WORKING PROPERLY</title>
      <link>https://forums.adobe.com/thread/1529916</link>
      <description>&lt;!-- [DocumentBodyStart:312b0e80-5d3d-4b65-922f-581e9761c181] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The CFINPUT with the VALIDATE="integer" is not working properly at all.&amp;nbsp; The user can enter 23,950 as the number.&amp;nbsp; We would think this is OK but it won't work properly without stripping the ","&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The field:&lt;/p&gt;&lt;p&gt;&amp;lt;CFINPUT TYPE="text" NAME="mynumber" VALIDATE="integer" MESSAGE="mynumber must be an integer"&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then, when the value is passed to the SQL INSERT&lt;/p&gt;&lt;p&gt;&amp;lt;CFQUERY....&amp;gt;&lt;/p&gt;&lt;p&gt;INSERT INTO mytable&lt;/p&gt;&lt;p&gt;(name, mynumber)&lt;/p&gt;&lt;p&gt;VALUES&lt;/p&gt;&lt;p&gt;(#'form.name#',#form.mynumber#)&lt;/p&gt;&lt;p&gt;&amp;lt;/CFQUERY&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Coldfusion will take the value 23,950 and think that 23 is one field and 950 is another because of the ","&amp;nbsp;&amp;nbsp; Therefore it is trying to put 3 values into 2 fields and throw an error.&amp;nbsp; Am I doing something wrong here or is this Coldfusion bug?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;p.s. in the MySql database, the "mynumber" field is defined as integer.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:312b0e80-5d3d-4b65-922f-581e9761c181] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">integer</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfinput</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">validate;</category>
      <pubDate>Thu, 24 Jul 2014 05:45:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1529916</guid>
      <dc:date>2014-07-24T05:45:55Z</dc:date>
      <clearspace:dateToText>3 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>CFINCLUDE inside CFMAIL</title>
      <link>https://forums.adobe.com/thread/1521370</link>
      <description>&lt;!-- [DocumentBodyStart:83300d8d-6dd9-4d20-a1a6-7f2875891de2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a done a CFQUERY and retrieve user's email and name.&amp;nbsp; Then I try to do a CFMAIL something like:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;lt;cfmail to="#user.email#" from="&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:sender@somewhere.com"&gt;sender@somewhere.com&lt;/a&gt;&lt;span&gt;" subject="Message from #sender_name#" type="html"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;/p&gt;&lt;p&gt;Dear #receiver_name#&lt;/p&gt;&lt;p&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;/p&gt;&lt;p&gt;#form.message#&lt;/p&gt;&lt;p&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfmail&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This seems to work with CFMAIL and the variables are being populated properly.&amp;nbsp; However, when I placed the content into a template content.cfm because I want to use it somewhere else as well. So content.cfm has:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;/p&gt;&lt;p&gt;Dear #receiver_name#&lt;/p&gt;&lt;p&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;/p&gt;&lt;p&gt;#form.message#&lt;/p&gt;&lt;p&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and the program became:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;lt;cfmail to="#user.email#" from="&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:sender@somewhere.com"&gt;sender@somewhere.com&lt;/a&gt;&lt;span&gt;" subject="Message from #sender_name#" type="html"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfinclue template="content.cfm"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfmail&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now the problem is, I am NOT getting the variables (#receiver_name# and#form.message#) populated by Coldfusion when I use the cfinclue template.&amp;nbsp; Why?&amp;nbsp; This is driving me crazy.&amp;nbsp; I don't know why it doesn't work.&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks in advance.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:83300d8d-6dd9-4d20-a1a6-7f2875891de2] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfmail</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfinclude</category>
      <pubDate>Mon, 14 Jul 2014 04:35:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1521370</guid>
      <dc:date>2014-07-14T04:35:47Z</dc:date>
      <clearspace:dateToText>4 months 17 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Passing associated values with selected item in CFFORM?</title>
      <link>https://forums.adobe.com/thread/1090810</link>
      <description>&lt;!-- [DocumentBodyStart:7d0cbfb5-cd53-40c3-8391-cafe485725e8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I query a database for names and different grades for subjects.&amp;nbsp; For example, I requested for "Mary" and the database returns more than one "Mary".&amp;nbsp; So I displayed the different "Mary" with a cfform and list all the "Mary" with a radio button and let user choose the right "Mary".&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;e.g.&lt;/p&gt;&lt;p&gt;cfquery...&lt;/p&gt;&lt;p&gt;if more than one student with same name then&lt;/p&gt;&lt;p&gt;&amp;lt;cfform action="nextprogram"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfoutput query=list&amp;gt;&lt;/p&gt;&lt;p&gt; &amp;lt;cfinput type=radio name=studentname value=#studentname#&amp;gt;#studentname#, #studentlastname#&lt;/p&gt;&lt;p&gt;&amp;lt;cfinput type=hidden name=math value=#math#&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfinput type=hidden name=physic value=#physic#&amp;gt;&lt;/p&gt;&lt;p&gt;....&lt;/p&gt;&lt;p&gt;&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfform&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Of course, I realize this will not work because if there are 10 "Mary" and I select the first "Mary", the application will not know which math, physic grades etc. belong to the first "Mary". Since I have already done the database query with all the information retrieved, I don't want to do a database query again.&amp;nbsp; How do I pass the all the information belong to the chosen "Mary" to the "nextprogram"?&amp;nbsp;&amp;nbsp; This is probably very easy to do with different CF tag, but I haven't used Coldfusion for a while, so any help is appreciated.&amp;nbsp; Thank you.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Jack&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7d0cbfb5-cd53-40c3-8391-cafe485725e8] --&gt;</description>
      <pubDate>Tue, 30 Oct 2012 16:55:33 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1090810</guid>
      <dc:date>2012-10-30T16:55:33Z</dc:date>
      <clearspace:dateToText>2 years 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Some images not displayed on localhost</title>
      <link>https://forums.adobe.com/thread/924285</link>
      <description>&lt;!-- [DocumentBodyStart:418941d5-7a10-4580-b509-679b5e018aa8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span&gt;I just recently installed CF on my own computer as localhost with Apache.&amp;nbsp; When I call a Coldfusion page in &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://localhost/main.cfm" rel="nofollow" target="_blank"&gt;http://localhost/main.cfm&lt;/a&gt;&lt;span&gt; it will show the text and some images.&amp;nbsp; However, it will not show all the images.&amp;nbsp; All the images are stored under the local htdoc/images, which should be &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://localhost/images/myimage.jpg" rel="nofollow" target="_blank"&gt;http://localhost/images/myimage.jpg&lt;/a&gt;&lt;span&gt;.&amp;nbsp; The weirdest thing is that some small images are being displayed while the larger images are not being display in the main.cfm&amp;nbsp; They are all being called the same way e.g. &amp;lt;IMG SRC="images/myimage.jpg"&amp;gt; or &amp;lt;IMG SRC="images/myimage2.jpg"&amp;gt; etc.&amp;nbsp; Does anyone know why this is happening?&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Also if I reference it directly &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://localhost/images/myimage.jpg" rel="nofollow" target="_blank"&gt;http://localhost/images/myimage.jpg&lt;/a&gt;&lt;span&gt; etc on the browser, it will display an error message that says "The image &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://localhost/images/myimage.jpg" rel="nofollow" target="_blank"&gt;http://localhost/images/myimage.jpg&lt;/a&gt;&lt;span&gt;" cannot be displayed because it contains errors".&amp;nbsp; This happens to most images.&amp;nbsp; The images will display on live site when I uploaded.&amp;nbsp; So I am totally puzzled.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:418941d5-7a10-4580-b509-679b5e018aa8] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">images</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">localhost</category>
      <pubDate>Sat, 12 Nov 2011 19:27:27 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/924285</guid>
      <dc:date>2011-11-12T19:27:27Z</dc:date>
      <clearspace:dateToText>2 years 12 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>MYSQL SELECT WHERE IN issue</title>
      <link>https://forums.adobe.com/thread/812160</link>
      <description>&lt;!-- [DocumentBodyStart:e112fb78-2b5c-4d72-a4cb-2e2bde0e5c15] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am trying to use the WHERE fieldname IN ("#form.names#") but it won't work.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I know for example:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT * &lt;br/&gt;FROM tablename &lt;br/&gt;WHERE &lt;br/&gt;fieldname IN ('US,UK,GB,CN');&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;will NOT work, but&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT * &lt;br/&gt;FROM tablename &lt;br/&gt;WHERE &lt;br/&gt;fieldname IN ('US','UK','GB','CN');&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;will work. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But here is my problem.&amp;nbsp; I get the list from a form with checkboxes, so they are stored in a form variable call form.names.&amp;nbsp; The form.names value is US.UK,GB,CN etc.&amp;nbsp; So if I put&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT * &lt;br/&gt; FROM tablename &lt;br/&gt; WHERE &lt;br/&gt; fieldname IN (#form.names#);&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;nothing will work, because there is no quotes around it but if I put the quotes&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;SELECT * &lt;br/&gt; FROM tablename &lt;br/&gt; WHERE &lt;br/&gt; fieldname IN ("#form.names#");&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;will work ONLY if the list has one item.&amp;nbsp; When there is more than one like the above, it won't work at all. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How can I manipulate the #form.names# so that each item will have quotes around it?&amp;nbsp; Any help is appreciated.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e112fb78-2b5c-4d72-a4cb-2e2bde0e5c15] --&gt;</description>
      <pubDate>Sun, 13 Mar 2011 00:09:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/812160</guid>
      <dc:date>2011-03-13T00:09:43Z</dc:date>
      <clearspace:dateToText>3 years 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>12</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Find a string within a field</title>
      <link>https://forums.adobe.com/thread/753273</link>
      <description>&lt;!-- [DocumentBodyStart:b3fa9e69-feea-4b01-a5a0-78328817c4b7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This may be easy but I am new to this so here it goes.&amp;nbsp; I am trying to find if a string can be found in a mysql database field. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The following will only find exactly match&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFQUERY DATASOURCE="databasename"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT mycontact, userid&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM mytable&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE email = #form.email#'&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CFQUERY&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The following will return result if the field email is contain in the form.email&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFQUERY DATASOURCE="databasename"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT mycontact, userid&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM mytable&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE email like '%#form.email#%'&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CFQUERY&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But these will not give what I want.&amp;nbsp; I want the reverse of the above.&amp;nbsp; The email fied can contain MORE than one email addresses.&amp;nbsp; I want to be able to enter a value i.e. form.email and search the table and find any record in the "email" field that contain form.emal.&amp;nbsp; Help is appreciated.&amp;nbsp; I am using MYSQL database.&amp;nbsp; Thanks.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b3fa9e69-feea-4b01-a5a0-78328817c4b7] --&gt;</description>
      <pubDate>Wed, 17 Nov 2010 01:37:31 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/753273</guid>
      <dc:date>2010-11-17T01:37:31Z</dc:date>
      <clearspace:dateToText>3 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>&lt;CFMAIL&gt; TO not working as described</title>
      <link>https://forums.adobe.com/thread/743678</link>
      <description>&lt;!-- [DocumentBodyStart:124096c2-9b89-4f94-9b77-27adda9046d5] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have been using &amp;lt;CFMAIL&amp;gt; tag for a while, as follows:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;CFMAIL TO="#toemail#" FROM="#form.email#" SUBJECT="Inquiry"&amp;gt;&amp;nbsp; etc.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;The #toemail# can be a single email or more than one email.&amp;nbsp; The problem is with multiple emails.&amp;nbsp; In old CF version 5 when the database value for #toemail# is "&lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:me@domain.com"&gt;me@domain.com&lt;/a&gt;&lt;span&gt;, &lt;/span&gt;&lt;a class="jive-link-email-small" href="mailto:you@domain.com"&gt;you@domain.com&lt;/a&gt;&lt;span&gt;", it will send it successfully.&amp;nbsp; However in CF8 the space between the two emails are removed automatically.&amp;nbsp; Even though these 2 email addresses are seperated by a comma, CF8 will NOT sent out the emails to the two email addresses.&amp;nbsp; It throws in an "Invalid Addresses" in the error log and will not send the email.&amp;nbsp; What to do?&amp;nbsp; It seems like a bug in CF8 to me.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Your help is appreciated.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:124096c2-9b89-4f94-9b77-27adda9046d5] --&gt;</description>
      <pubDate>Tue, 26 Oct 2010 22:27:12 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/743678</guid>
      <dc:date>2010-10-26T22:27:12Z</dc:date>
      <clearspace:dateToText>4 years 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>&lt;cfselect&gt; with Required="Yes" not working</title>
      <link>https://forums.adobe.com/thread/743211</link>
      <description>&lt;!-- [DocumentBodyStart:21db10dc-45e7-4aa0-a44f-8b27cb539c3a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have this cfselect:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;CFSELECT name="country" SIZE="1" REQUIRED="Yes" message = "Please select a country"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION value=" "&amp;gt;Choose a Country&amp;lt;/OPTION&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE="AF"&amp;gt;Afghanistan [AF]&amp;lt;/OPTION&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE="AL"&amp;gt;Albania [AL]&amp;lt;/OPTION&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;OPTION VALUE="DZ"&amp;gt;Algeria [DZ]&amp;lt;/OPTION&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CFSELECT&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, according to CF8 manual on the Required parameter:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border:0px solid black;"&gt;&lt;/td&gt;&lt;td style="border:0px solid black;"&gt;&lt;p&gt;&lt;span&gt;Note: &lt;/span&gt;This attribute has no effect if you omit the &lt;samp class="codeph"&gt;size&lt;/samp&gt; attribute or set it to 1, because the browser always submits the&amp;nbsp; displayed item. You can work around this issue: format forms by having&amp;nbsp; an initial &lt;samp class="codeph"&gt;option&lt;/samp&gt; tag with &lt;samp class="codeph"&gt;value=" " &lt;/samp&gt;(notice the space character between the quotation marks).&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;samp class="codeph"&gt;yes&lt;/samp&gt;: a list element must be selected when the form is submitted. &lt;/li&gt;&lt;li&gt;&lt;samp class="codeph"&gt;no&lt;/samp&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I tried to "work around" with and without the SIZE but CF still will NOT detect that the user did not select a country. What is wrong?&amp;nbsp;&amp;nbsp; The screen displays Choose a Country and it will pass.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:21db10dc-45e7-4aa0-a44f-8b27cb539c3a] --&gt;</description>
      <pubDate>Tue, 26 Oct 2010 01:41:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/743211</guid>
      <dc:date>2010-10-26T01:41:39Z</dc:date>
      <clearspace:dateToText>4 years 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Error Executing Database Query - Help!</title>
      <link>https://forums.adobe.com/thread/742071</link>
      <description>&lt;!-- [DocumentBodyStart:5f89a414-e8cc-4519-b0f5-48fdc027d0cd] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a cfquery code that looks like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFQUERY DATASOURCE="mydatabase" USERNAME="myuser" PASSWORD="mypassword" NAME="codelist" CACHEDWITHIN="#CreateTimeSpan(0,1,0,0)#"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT *&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM systemcode&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE (LEN(TRIM(systemcode)) = 2 OR LEN(TRIM(systemcode)) = 4)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFSWITCH EXPRESSION="#CAT#"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="1"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '01' AND '05')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="2"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '06' AND '15')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="3"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '16' AND '24')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="4"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '25' AND '27')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="5"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '28' AND '38')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="6"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '39' AND '40')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="7"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '41' AND '43')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="8"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '44' AND '49')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="9"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '50' AND '63')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="10"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '64' AND '67')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="11"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '68' AND '71')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="12"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '72' AND '83')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="13"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '84' AND '85')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="14"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '86' AND '89')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="15"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '90' AND '97')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFCASE VALUE="16"&amp;gt;AND (MID(systemcode,1,2) BETWEEN '98' AND '99')&amp;lt;/CFCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CFDEFAULTCASE&amp;gt;&amp;lt;CFLOCATION URL="somewhere.htm"&amp;gt;&amp;lt;/CFDEFAULTCASE&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CFSWITCH&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORDER BY systemcode&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/CFQUERY&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This works perfectly in CF 5.&amp;nbsp; However, when running in CF 8 I am getting the error message:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Error Executing Database Query.FUNCTION mydatabase.LEN does not exist The specific sequence of files included or processed is: /home/httpd/vhosts/somedomain.com/httpdocs/reference/systemcode.cfm, line: 24&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(that refers to the above cfquery)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;"mydatabase" is the name of the database and LEN is a function.&amp;nbsp;&amp;nbsp;&amp;nbsp; It's checking for the length of systemcode to be 2 or 4, if they are then check if the value of #CAT# is 1 and that the first 2 characters is between 01 and 05 then select the row.&amp;nbsp; I don't know why it works with CF5 but not CF8?&amp;nbsp; It's driving me nuts.&amp;nbsp; Any help is appreciated.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:5f89a414-e8cc-4519-b0f5-48fdc027d0cd] --&gt;</description>
      <pubDate>Fri, 22 Oct 2010 21:27:07 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/742071</guid>
      <dc:date>2010-10-22T21:27:07Z</dc:date>
      <clearspace:dateToText>4 years 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

