> Is there a way to check or display to an action page how many 
> checkboxes where selected from the below loop? 
> 
> <form action="actDirectoryUpdate.cfm?varAnchor=books" method="post">
> 
>               <input type="button" value="SelectAll" 
> name="Select_All_OMITDIR" OnClick="SelectAll('Omit');">
>               <input type="button" value="ClearAll" 
> name="Clear_All_OMITDIR" OnClick="ClearAll('Omit');">
>               <input type=submit name=submit value="Update">
> 
>               <cfloop index=dir_name list="#full_directory_list#">
> <input type="Checkbox" value="#dir_name#" name="Dir_Access">
> </cfloop>
> 
> </form>

In your action page, using CF, you can examine the number of values in the
Form.Dir_Access list. When you have a form with a bunch of checkboxes with
the same name but with different values, those will be represented in the
action page as a single Form variable containing a comma-delimited list of
values:

You selected <cfoutput>#ListLen(Form.Dir_Access)#</cfoutput> directories in
the form.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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