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.

Reply via email to