title: In ColdFusion what do single and double quotes around attribute values do?
body: <p>For example what do the "" around  #Trim(FORM.fromfirstname)# do? I'm adding <code>&lt;cfqueryparam...&gt;</code> tags and am wondering if the quotes are still required?</p>
  
  <pre><code>&lt;CFQUERY NAME="account" DATASOURCE="#APPLICATION.centralDSN#"&gt;
      SELECT * 
      FROM users
      WHERE (firstname =&lt;CFQUERYPARAM VALUE="#Trim(FORM.fromfirstname)#"&gt;)
          AND (lastname = &lt;CFQUERYPARAM VALUE="#Trim(FORM.fromlastname)#"&gt;)
          AND (email = '#Trim(FORM.fromemail)#')
  &lt;/CFQUERY&gt;
  </code></pre>
  
  <p>Here's one that doesn't use quotes for the <code>WHERE</code> clause:      </p>
  
  <pre><code>&lt;CFIF getUser.RecordCount&gt;
      &lt;CFQUERY NAME="cUser" DATASOURCE="#APPLICATION.centralDSN#"&gt;
          UPDATE users
              SET mailing_list = &lt;CFIF IsDefined("FORM.mailing_list")&gt;#FORM.mailing_list#&lt;CFELSE&gt;0&lt;/CFIF&gt;
          WHERE user_id = #getUser.user_id#
      &lt;/CFQUERY&gt;
  &lt;/cfif&gt;
  </code></pre>
  
  <p>EDIT: if they don't do anything there's no harm in keeping them, correct? In another file I found examples like</p>
  
  <pre><code>    to="#ListFirst(EnglishEmailList)#"
      cc="#ListRest(EnglishEmailList)#"
  </code></pre>
  
  <p>So if they are already there I'll leave them?</p>