I have a form which in part includes the option of checking a workshop
(4 different workshops in all) and a place for the number of attendees.

 

Workshop 1:<input type="checkbox" name="wrkshp" value="Workshop 1" />
Attendees:<input type="text" name="att1" />

Workshop 2:<input type="checkbox" name="wrkshp" value="Workshop 2" />
Attendees:<input type="text" name="att2" />

Workshop 3:<input type="checkbox" name="wrkshp" value="Workshop 3" />
Attendees:<input type="text" name="att3" />

Workshop 4:<input type="checkbox" name="wrkshp" value="Workshop 4" />
Attendees:<input type="text" name="att4" />

 

I am using a cfloop for the wrkshp selected on my action page, but I
also want to display the number of attendees based on which workshop was
checked. Since the checkboxes are grouped (same name) I am not sure how
to identify the selected value in my conditional expression.

 

Workshop: <cfloop list="#form.wrkshp#" index="w">#w#</cfloop>

Attendee: <cfif IsDefined("form.wrkshp") AND form.wrkshp NEQ"">

<cfoutput>#form.att1#</cfoutput>

<cfelseif>

<cfoutput>#form.att2#</cfoutput>

<cfelseif>

<cfoutput>#form.att3#</cfoutput>

<cfelse>

<cfoutput>#form.att4#</cfoutput>

</cfif> 

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.esu.edu <http://www.esu.edu> 

 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to