--- snip ---
| The problem is you can't check a variable with a dynamic
| name, such as side_#id# (i.e. side_1=left/right, side_2=left/right).
--- snip ---

I haven't followed this thread closely, so I'm not really sure what the
problem is that you are trying to solve, but I would just like to comment
that you can check a variable with a dynamic name:

Evaluate('side_#id#')  will give you  side_1 or whatever, and then evaluate
side_1's value.

If you care to test it out ....

<cfloop from="1" to="5" index="id">
    <cfset 'side_#id#' = "left">
    <cfoutput>side_#id# = #Evaluate('side_#id#')#</cfoutput><br>
</cfloop>


Todd Ashworth

| -----Original Message-----
| From:     [EMAIL PROTECTED] at INTERNET
| Sent:     Wednesday, October 04, 2000 11:02 AM
| To:     [EMAIL PROTECTED] at INTERNET
| Subject:     RE: Brain Buster
|
| 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/[email protected]/
| 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/[email protected]/
| To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=l
| ists/cf_talk or send a message to [EMAIL PROTECTED] with
'unsubs
| cribe' in the body.
| --------------------------------------------------------------------------
----
| Archives: http://www.mail-archive.com/[email protected]/
| 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/[email protected]/
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