CheckBoxes: numbered of boxes vary; transmit data for only the ones that are checked
Posted on 2004-10-05
I have a query that generates a list of account numbers (the quantity per customer varies). So, in <cfform tag, I use a <cfloop query to list the account numbers. Next to each account number, I put an <cfinput type="checkbox" name="uniquename"> to let the customer decide whether to include that account in the service.
I want to transmit the following in a form:
if uniquenamea is checked then <cfset account1=#uniquenamea#>
otherwise, got to uniquenameb and <cfset account1=#uniquenameb#>
then do account2...account3.... until accountn (which varies)