If the names are from the DB you can either get them again on the action page or pass them to the action page from the form. Then in a query or list loop:
IsDefined("FORM.#yourQuery.fieldName#") or IsDefined("FORM.#aListIndex#") Adrian -----Original Message----- From: Randy [mailto:[EMAIL PROTECTED] Sent: 01 October 2008 16:50 To: cf-talk Subject: Re: Form Challenge? Kind of hard to check for a form value if you are unsure the name of the element. Pure Curosity: Why would you not know the name of the field? Is it pulled from a database when the form page is created? On Wed, Oct 1, 2008 at 11:41 AM, Mallory Woods <[EMAIL PROTECTED]>wrote: > What is the best way of coding this: I have a form that currently has 4 > check boxes. > When processing this form I need to check for the existence of any of the > check boxes. > > Now, there are 4 values now but there could be more in the future. > > I tried to loop over the form variable with "isdefined" by I ran into > problems as I won't always know the > name of the check box to check. > > Any suggestions on how to approach this problem? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313339 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4