I'm sure there's a creative way to avoid the evaluate() in this, somebody
else can share with us what way that might be, but here's one way of doing
it:


<cfloop from="100" to="800" step="100" index="i">
        <cfif (isDefined("form.service" & i)) AND (evaluate("form.service" &
i) IS "on")>
                <!--- do yo thang --->
        </cfif>
</cfloop>


Adam.



> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 11:14 AM
> To: CF-Talk
> Subject: cfloop/index question
> 
> 
> 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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

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

Reply via email to