-----BEGIN PGP SIGNED MESSAGE-----
Hash: MD5

Hi Jeremy,

   just give the checkbox form elements the same name - then you end
   up with just a list of the checked options, as the form will only
   pass those that were ticked.  However you'll need to add some error
   checking to make sure it doesn't crash if the user doesn't select
   any, as in that case the form won't pass the variable at all.

Toby

Monday, January 6, 2003, 2:05:46 PM, you wrote:

JW> Hi guys,

JW> Quick question. I have a form with multiple check boxes i.e. tick here
JW> to turn on...i.e.

JW> Description
JW> red                    x
JW> blue
JW> green                x

JW> When they submit the form I only what the variables that the user has
JW> ticked to be
JW> passed to the database.

JW> What would be the best way to do this? You know wot i mean?

JW> Regards,
JW> Jeremy Watson
JW> ColdFusion Web Developer

JW> BLA
JW> Bob Littler Agencies Pty Ltd
JW> 45 Aquarium Avenue
JW> Hemmant, Queensland 4174

JW> Phone: 07 3890 0122
JW> Fax:     07 3890 5388

JW> www.bla.com.au <http://www.bla.com.au/>
JW> www.humminbird.com.au <http://www.humminbird.com.au/>
JW> www.minnkota.com.au <http://www.minnkota.com.au/>
JW> ****************************************************************
JW> This e-mail, together with any attachments, is intended for the
JW> named recipient(s) only. If you have received this message in
JW> error, you are asked to inform the sender as quickly as possible
JW> and delete this message and any copies of this message from your
JW> computer system network.

JW> Any form of disclosure, modification, distribution and/or
JW> publication of this e-mail message is prohibited.  Unless
JW> otherwise stated, this e-mail represents only the views of
JW> the sender and not the views of the Bob Littler Agencies Pty Ltd
JW> ****************************************************************



JW> ---
JW> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
JW> To unsubscribe send a blank email to [EMAIL PROTECTED]

JW> MX Downunder AsiaPac DevCon - http://mxdu.com/







 ---------------------------------------

             Life is poetry -
               write it in your own words.

 ---------------------------------------

Toby Tremayne
Technical Team Lead
Code Poet and Zen Master of the Heavy Sleep
Toll Solutions
154 Moray St
Sth Melbourne
VIC 3205
+61 3 9697 2317
0416 048 090
ICQ:  13107913

-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQCVAwUAPhj1E0YhrxxXvPlFAQHLNwQAunMSjBWkzVLYlJcs8BWMYgtSSN09bBuy
FgbKi4Y+vqNiqP6D960ipVe6NfBiGKmnIGPPNo81pjuQoFzbDcs8CvfcE93l5JgY
8Zvvs071OWDRjZ496xY9LhWtXDYBFMRgacpJYFoDsyCt4WVXUOwaf+e5CAVcH1uX
ldVgukGQGzk=
=NWl2
-----END PGP SIGNATURE-----


---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to