Something like:

<cfif StructKeyExists(FORM, "option#i#")> do whatever it is I need to
do</cfif>

Where i is the index value of a loop, your 1, 2, 3 or you could just do
cfqueryparams for the fields and then just check to see if they have a value
other than what you defaulted with the param.  Something like:

<cfparam name="Form.option1" default="" />
<cfparam name="Form.option2" default="" />
<cfparam name="Form.option3" default="" />

<cfloop from="1" to="3" index="i">
<cfif Form["option#i#"] NEQ "">do whatever it is I need to do because it has
a value</cfif>
</cfloop>

Hope that makes sense, it is late here and my brain is not functioning all
that great right now  :)

On 2/8/06, j s <[EMAIL PROTECTED]> wrote:
>
> Deanna,
>
> I didn't see your post till now. I did it with evaluate instead.
> I still have a problem; what if I have three options
>
> <!-- radio button groups -->
> <form>
> <input type="radio" name="option1" value="#whatever#">
> <input type="radio" name="option1" value="#whatever#">
> <input type="radio" name="option2" value="#whatever#">
> <input type="radio" name="option2" value="#whatever#">
> <input type="radio" name="option3" value="#whatever#">
> <input type="radio" name="option3" value="#whatever#">
> </form>
>
> If I select option1 and option3 I get an error message that option2 is
> missing. I have to make my selection concurrent because of the loop.  Any
> ideas?
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231713
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to