And, the solution is, with much thanks to everyone--especially Matthew
and Jim:

<cfloop collection="#FORM#" item="field">
    <cfif listFirst(field, "_") EQ "commentPost">
        <cfset commentID = listLast(field, "_")>
                <cfif NOT IsDefined ("FORM.commentActive_#commentID#")> 
                        <cfset commentActive=0>
                        <cfelse>
                        <cfset commentActive =
form["commentActive_#commentID#"]>
                        </cfif>         
        <cfset commentPost = form[field]>
                <cfquery datasource="blinktag">
            UPDATE       tblComments
            SET          commentActive=#commentActive#,
                         commentPost='#commentPost#'
            WHERE        commentID=#commentID#
        </cfquery>      
        </cfif>
</cfloop>

I had to make an allowance for a checkbox, and we seem to be working
beautifully!

Russ



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to