I don't think you need the evaluate.

<cfset tempValue = form["service" & xx]>

> -----Original Message-----
> From: Randell B Adkins [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 12:44 PM
> To: CF-Talk
> Subject: Re: cfloop/index question
> 
> 
> I would set a temp variable and check that var.
> 
> I would use CFLOOP with the index of xx to get your 100, 200....
> 
> <cfloop index=xx from=100 to=1000 step=100>
> set tempValue = Evaluate("form.service" & xx)
> 
> <cfif tempValue EQ TRUE>
> -- do this
> <cfelse>
> -- do that
> </cfif>
> 
> >>> [EMAIL PROTECTED] 03/05/03 12:13PM >>>
> I've got a form with a large list of services that a client can click
> to get
> more info. Depending on where they come from, the checkboxes will
> auto-check
> a particular service they're interested in, and then they can check a
> few
> more if they wish information on other services.
> 
> JAVASCRIPT CHECKBOX FUNCTION
> function makeCheckboxes(){
> STUFF.service<cfoutput>#rq_SerID#</cfoutput>.checked=true
> }
> 
> On the form itself, each checkbox for each service is name like:
> 
> service100
> service200
> service300
> 
> This works together with the Javascript to check the appropriate box
> based
> on a passed URL variable. This part works great.
> 
> I'm having a bit of trouble on the processing side to get a CFLOOP
> properly
> set up to go through all the checkboxes and list the values of the
> ones
> checked.
> 
> Had this working in ASP:
> "I would like information on the following products." & vbCrlf
> REM ADD THE CHECKBOXES TO THE CDO EMAIL BODY
> For i=10 to 720
> if Request.Form("service" & i) <> "" THEN
> vBody = vBody & cStr(Request("service" & i)) & vbCrLf
> END IF
> next
> 
> ...but having some trouble translating this over to Cold Fusion...
> 
> Advice please...
> 
> Thanks
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to