Hi Seona,

        you can do this in an input tag, but you can't embed cfif tags  
within other cf tags.

cheers,
Toby

On 27/04/2006, at 9:18 AM, Seona Bellamy 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.
>
> >



-----------------------------------

        Life is poetry, write it in your own words

-----------------------------------

Toby Tremayne
Senior Technical Consultant
Lyricist Software
0416 048 090
ICQ: 13107913



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
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