Not knowing all of you code... I don't see the need for the checkboxes
to be named diff

  <cfloop query="GetAllUnitPromotionForType">

   <tr>
        <td><input type="checkbox" name="PromoCode"
value="#Unit#_#GetAllUnitPromotionForType.PK_UnitPromotion_ID#"></td>
    ...................
  </cfloop>

Then on action page... just use "form.PromoCode" and you will get a
comma delimited list of only the selected checkboxes....
Then you can parse it out as a list with Unit_PromoCode and you will be
looping over only what is selected
You could maybe even drop the Unit var but I'm sure you'll know whether
to do that or not :-)

--
-dc  [ cf5, ora8.1.7, iis5 ]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to