Jason,

you need to set a CFPARAM at the beginning of whatever page is processing
your form information, i.e.

<cfparam name="checkbox1" default="no">

if no value is passed, then the variable checkbox1 will hold the value "no";
if a value is passed (i.e. the box is checked), then CF will ignore the
cfparam tag.

Hope this helps....I wasted an afternoon figuring this one out :)

----- Original Message -----
From: Jason Zimmerman <[EMAIL PROTECTED]>
To: Cf-Talk (E-mail) <[EMAIL PROTECTED]>
Sent: Wednesday, May 24, 2000 11:31 AM
Subject: Form question


> I have a dynamic form with multiple checkboxes. They are named checkbox1,
> checkbox2, checkbox3, etc. I am using this to loop through and get the
value
> of each:
>
> <CFSET VARIABLES.var_name = "FORM.text" & VARIABLES.index>
> <CFSET VARIABLES.default_value = Evaluate(VARIABLES.var_name)>
> <CFSET VARIABLES.text =
> SetVariable(VARIABLES.var_name,VARIABLES.default_value)>
>
> The problem is when the checkbox is not checked and no value is passed.
Has
> anyone done anything like this before? Any help would be greatly
> appreciated.
>
> Thanks
> -Jason
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to