Ah. No, aparently you can't. I could have sworn I'd done it before, but I guess I'm wrong. Changing the <cfinput> to an <input> solved the problem.

*sigh* I could have sworn I'd done it before...

Cheers,

Seona.

On 27/04/06, Joel Cass <[EMAIL PROTECTED]> wrote:
You have a ColdFusion tag inside a ColdFusion tag. I've never done that. Is that possible?
-----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