Advertisement
billmoniz

Checkbox processor - Old Type

Apr 28th, 2012
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <cfset selectedFruit = "">
  2. <cfloop list="#form.fieldnames#" index="i">
  3.     <cfif findNoCase("fruit", i) NEQ 0>
  4.         <cfset selectedFruit = listAppend(selectedFruit, replaceNoCase(i, "fruit", "", "all"))>
  5.     </cfif>
  6. </cfloop>
  7.  
  8. <cfoutput>The selected fruit were: #selectedFruit#</cfoutput>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement