Would this work? <cfparam name="FORM.wrkshp" type="string" default="" /> <cftry> <cfparam name="FORM.user_type_id" type="numeric" default="0" /> <cfcatch> <cfset FORM.user_type_id = 0 /> </cfcatch> </cftry>
Steve LaBadie, Web Manger East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 http://www.esu.edu [EMAIL PROTECTED] -----Original Message----- From: houseoffusion [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 8:58 AM To: CF-Talk Subject: RE: Problem Passing Data Hi Steve, I think it's the checkbox that's your problem, it's because unless it's checked - it is not passed in the FORM scope. Therefore, what you're expecting doesn't get passed. You can <cfparam /> the expected FORM scope variable and default to false or Zero, whatever suits, to overcome this. If it's not the checkbox - just ensure all your form elements are inside the form you are submitting! Later, Niall. -----Original Message----- From: Steve LaBadie [mailto:[EMAIL PROTECTED] Sent: 17 September 2008 13:31 To: CF-Talk Subject: Problem Passing Data I have a form that is 99% working. All form data is being passed except for 1 item. I am not getting any errors. The form is for registering for a seminar and I need to know how many are attending (there are a total of 7 seminars). Not sure what I am missing. Any guidance would be appreciated. Form Control <tr><td><input type="checkbox" name="wrkshp" value="Lean Enterprise - Overview" id="1" /></td> <td width="60%">Leading Inclusive, Diverse Teams</td> <td>10/23/08</td> <td>$175.00</td> <td></td> <td align="center"><input type="text" name="att1" size="3" class="formveld" /></td></tr> Action Page Workshop: <cfloop list="#form.wrkshp#" index="w">#w#</cfloop> - Attendees: <cfif isdefined("form.wrkshp")> <cfif listfindnocase(form.wrkshp,"Leading Inclusive, Diverse Teams") gt 0><cfoutput>#form.att1#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Performance Management") gt 0><cfoutput>#form.att2#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Customer Service Made Easier & Profitable") gt 0><cfoutput>#form.att3#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Lean Enterprise - Overview") gt 0><cfoutput>#form.att4#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Communicating with a Diverse Workforce") gt 0><cfoutput>#form.att5#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Generation Change - A Job Market Threat") gt 0><cfoutput>#form.att6#</cfoutput></cfif> <cfif listfindnocase(form.wrkshp,"Ouch! Resolving Conflict at Work") gt 0><cfoutput>#form.att7#</cfoutput></cfif> </cfif> Steve LaBadie, Web Manger East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 http://www.esu.edu [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312661 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4