>4. Results of Query1are output. If an entry in query1 matches query2, it is
>CHECKED.
>Here is the code I am using:
><cfoutput>
> <input type="checkbox" name="content_id" value="#content_id#"
> <cfloop query="AllContents">
> <cfif UserContents.content_id IS AllContents.content_id>CHECKED</cfif>
> </cfloop>>
></cfoutput>
I'm sure I totally understand what you are trying to do, but the above code
will only create *one* checkbox that may have a bunch of "CHECKED" strings
in it. To see what I mean just view the source code (HTML) for your form.
I think you may want something like
<CFOUTPUT QUERY="AllContents">
<INPUT TYPE="checkbox"
NAME="content_ID"
VALUE="#AllContents.content_ID#"
CHECKED="#YesNoFormat(AllContents.content_ID IS
UserContents.content_id)#">
</CFOUTPUT>
Regards,
Seth Petry-Johnson
Argo Enterprise and Associates
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.