Funny part was that the form was functioning correctly... I could check a
couple of boxes and submit the form and it accepted them input correctly...
it was just the CFIF not working.. weird!  :)

Jay

-----Original Message-----
From: Tony Schreiber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:26 AM
To: CF-Talk
Subject: RE: HELP!!!!


Do you have Strict Validation turned on? I'm surprised the CF parser
didn't catch that. I've made the same mistake before, but it always throws
an error.

Well, wait, I guess not, it just results in invalid HTML - which CF could
care less about. ;p

> I discovered my problem and I am embarrassed to even mention it....  I had
> left the closing greater than symbol off the input tag... I had...
>
> <input type="checkbox" value="#id#" name="person" <cfif
> ListFindNoCase(url.person,id)>checked</cfif>
>
> rather than..
>
> <input type="checkbox" value="#id#" name="person" <cfif
> ListFindNoCase(url.person,id)>checked</cfif>>
>
> When I wrote the message the first time I had copied and pasted the code
> in... but I noticed in the email that I had omitted the last > symbol in
the
> input tag... I assumed I had just missed highlighting it when I copied it
to
> paste in the email... then after sending the email tot he list... a light
> came on and I noticed that my code did not have the last > symbol...
adding
> it and the code works fine... <blush>
>
> thanks for all the suggestions!!!
>
> Jay
>
>
> -----Original Message-----
> From: Jay E Wigginton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 17, 2001 9:09 PM
> To: CF-Talk
> Subject: HELP!!!!
>
>
> I am trying to do a simple <cfif> statement within a forms input/checkbox
> tag...
>
> The page debugging info displays....
>
> URL Parameters:
>
> PERSON=80,81
>
> The Query results do produce an ID equal to 80 and 81...
>
>
> <cfoutput query="GetResults">
> <input type="checkbox" value="#id#" name="person" <cfif
> ListFindNoCase(url.person,id)>checked</cfif>>
> </cfoutput>
>
>
> PROBLEM:
> The checkboxes never show up as "checked".... Am I just having a major
lapse
> in memory or is there something I have done wrong here?????
>
>
> thanks
> Jay
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to