> I have a loop over all formfields. One formfield, pos, which contains
> checkboxes, ends up being looped over *per checkbox*.  In other words, if
> pos contains 34,36,42 and I loop over it, I get pos three times,
> each time
> containing 34,36,42.  Is something wrong with my code?  Is there
> a another
> way to loop and get distinct name/value pairings?
>
> <CFLOOP list="#form.fieldnames#" index="thisone">
> <CFOUTPUT>
>   <input type="Hidden" name="#thisone#" value="#Evaluate(thisone)#">
> </cfoutput>
> </cfloop>

Checkboxes have to be named the same thing to make them loopable (if that
makes any sense), but only if it's POSTed - if you don't specify
METHOD="POST" on your form, then there will be multiple fields

HTH

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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