Give them all the same name but assign each a different value. Then on the
processing page loop through the list and insert/update accordingly.  The
form should submit a single variable with a comma separated list of the
values selected.  I typically store all the values in a single DB column and
parse it out when I need it.  If you need a code sample, let me know and
I'll dig one up... Does this solve your problem or did I misread the
question?

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 22, 2001 7:20 AM
To: CF-Talk
Subject: multiple checkbox submit?


Hi,

I have a form with many (30) checkboxes on it, and would like to be able to
update a database with information as to which checkboxes were checked.

Is there a relatively easier way to do this other than 30 cfif/cfelses?

thanks,
Peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to