Hi all,

It seems simple enough, but I'd like a little help. The problem I am having
is that it doesn't remember the selected checkboxes unless I select them
all, or don't select any( those it remembers). This is what I am
doing(trying to do):

1. A user selects some checkboxes (same field name, different values) and
clicks Save!
2. Existing database records for that user_id are looped through, deleted
and new selected ones are inserted(on multiple rows).
3. Query1 reads all the values for all the checkbox items, while another
Query2 reads the entries for that user.
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>

Thanks for your help.
Hassan

------------------------------------------------------------------------------
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.

Reply via email to