Sorry for the duplicate post... my posts weren't being delivered on
CFTALK yesterday.
 
*** *** ***
 
Folks... I'm not sure what I'm doing here, but I'm hoping somebody can
point me in the right direction (even if the right direction is just a
web resouce, I don't mind learning).
 
I've got this loop that displays a list of organizations.  I want people
to be able to check off which organizations they represent.
 
How can I do the equivalent of:
 
<cfif WHAT DO I PUT HERE TO ENSURE ALL org_abbr ARE COVERED?><CFSET
checked_ab="1"><CFELSE><CFSET checked_ab="0"></CFIF>
 
As well as inserting and updating into the db.
 
I think the problem is that I'm not understanding loops very well.
 
*** *** ***
 
<CF_Columns Cols="3" Records="#list.RecordCount#">
   
<table border="0" cellpadding="2" cellspacing="0" width="100%"> <tr>
<!--- Loop through the number of columns desired. --->
<cfloop index="LoopCount" from="1" to="3">
 <!--- Access the start and end variables created by the custom tag.
--->
 <cfset #start#=("start" & #LoopCount#)>
 <cfset #end#=("end" & #LoopCount#)>
 <td valign="top">
 <cfoutput query="list" startrow="#Evaluate(start)#"
maxrows="#Evaluate(end)#">
  <cfinput type="checkbox" value="1" name="#org_abbr#"
checked="#checked_org_abbr#" /> #org_abbr#<br>  </cfoutput>  </td>
</cfloop>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

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

Reply via email to