Ok. I'll be a little more informative now.
 
Instead, try
 
<cfinput class="chkb" name="advertising" id="advertising" type="checkbox" value="1" checked="#form.advertising#">
or
 
<cfinput class="chkb" name="advertising" id="advertising" type="checkbox" value="1" checked="#round(form.advertising IS true)#">
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]On Behalf Of Blair McKenzie
Sent: Thursday, 27 April 2006 9:22 AM
To: [email protected]
Subject: [cfaussie] Re: Need an extra set of eyes on this

I usually use checked="true". Could having checked in that string cause your problem?

Blair

On 4/27/06, Seona Bellamy < [EMAIL PROTECTED]> wrote:
Hi guys,

Can someone please look at this and tell me what's wrong with it? I'm sure it's something really simple, but I just can't see it.

I have the following piece of code:
<cfinput class="chkb" name="advertising" id="advertising" type="checkbox" value="1"<cfif form.advertising> checked="checked"</cfif>>

It gives me the following error:
-----------------
Invalid token 'c' found on line 194 at column 121.
The CFML compiler was processing:
  * a cfinput tag beginning on line 194, column 38.
  * a cfinput tag beginning on line 194, column 38.
  * a cfinput tag beginning on line 194, column 38.
  * a cfinput tag beginning on line 194, column 38.
The error occurred on line 18.
----------------

If I remove the <cfif> bit, the error goes away. Can I not have a <cfif> in a <cfinput>? I'm sure I've done it before.

Cheers,

Seona.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to