You should get a comma delimited list of values in the FORM.Dir_Access
field, so using ListLen() on it should get you the result you're looking
for.  Make sure you do an isDefined() first though, because if no checkboxes
are checked, then the variable won't be defined.

barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: Bushy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 10:56 AM
> To: CF-Talk
> Subject: re: Checking how many "checkboxes" were selected
>
>
> Hi,
>
> 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>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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.
http://www.cfhosting.com

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

Reply via email to