I'm not completely clear on the output you want, but here are some ideas:

1) Make your life simpler.  You can loop through the list:
<cfloop index="ITEM" list="FORM.BLOCKS">
        #item#<br>
</cfloop>

2) Show us your output.

-----Original Message-----
From: Grady Milhon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 10:46 AM
To: CF-Talk
Subject: Brain Buster


I have a form, with a check box and two radio buttons.  When submitted, I
want
two arrays, one with all checked items with the first radio button selected
and
one with all checked items with the second radio button selected.  I am
having a
very had time doing this.

Here is my code from the form:

<form action="action.cfm" method="post">
<table>
<cfoutput query="blocks">
<tr>
<td>
<input type="checkbox" name="blocks" value="#id#">
</td>
     <td>#name#</td>
     <td>
<input type="radio" name="side_#id#" value="left"> Left
          <input type="radio" name="side_#id#" value="right"> Right
     </td>
</tr>
</cfoutput>
</table>
<p><input type="submit" value="Save">
</form>

This code will display the values of the checkboxes that are checked:

(action.cfm)

<cfset aryBlocks=listtoarray(form.blocks,chr(44))>
<cfloop index="i" from="1" to="#arraylen(aryBlocks)#">
     #aryBlocks[i]#<br>
</cfloop>
</cfoutput>


Can someone PLEASE help me.

Thanks,

Grady Milhon
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
----------------------------------------------------------------------------
--
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.
------------------------------------------------------------------------------
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