Try this in your select form template:
<cfset rowcount = 0>
<cfoutput query="">
<cfset rowcount = rowcount+1>
<input type="hidden" name="employee_name#rowcount#" value="#whatever#">
<input type="radio" name="employee_fire_status#rowcount#" value="1"> Fire 'em <input
type="radio" name="employee#rowcount#" value="0"> Don't Fire 'em <br>
</cfoutput>
At the bottom of the form (hidden):
<input type="hidden" name="rowcount" value="#rowcount#">
Then in the template which displays the results:
<cfloop index="row" from="1" to="#totalrows#">
<cfset ControlName1 = "Form.employee_name" & #row#>
<cfset employee_name = #Evaluate("#ControlName1#")#>
<cfset ControlName2 = "Form.employee_fire_status" & #row#>
<cfset employee_fire_status = #Evaluate("#ControlName2#")#>
<cfoutput>
#employee_name# <cfif employee_fire_status eq 1>Fire 'em<cfelse>Don't Fire
'em</cfif>
</cfoutput>
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: Gavin Myers [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 02, 2000 12:31 PM
> To: CF-Talk
> Subject: dynamic form
>
>
> this is buggin' me
> okay, lets say the database consists of:
>
> emp_name
> roy
> joe
> billy
> gus
>
>
> cf_code (simplified)
>
> <cfquery>
> select * from names
> </cfquery>
> <cfform>
> Who woule you like to fire?
> <cfoutput>
> #emp_name# <cfinput type = "radio" value = "0">No<cfinput type = "radio"
> value = "1">Yes
> </cfoutput>
> <input type = "submit" value = "submit">
> </cfform>
>
>
> In order for this to work i have to specify a name so my radio
> buttons will
> work. In order to give my radio buttons a name i have to give
> them a dynamic
> name (like #emp_name#)
>
> so when i go to my next page, how do i call those dynamic set feild names?
>
> like #form.#emp_name##?
>
> know what i mean?
> ------------------------------------------------------------------
> ------------
> 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?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.