First of all I recommend not using the radio button if you wish to make
multiple selections, radio buttons are best used when you only need to make
a single selection out of a group. Use the checkbox instead, now when it
comes to the name of this its best to do something like this:-)

<cfoutput query="queryname">
#emp_name# <cfinput type = "checkbox" name="names_#CurrentRow#" value =
"0">No
</cfoutput>

Indicated that selecting this checkbox that it will delete, then use a
javascript or server side validation and alert to make sure that the person
wishes to delete. Then when you reference the variables you should get back
a list with the names_1,names_2,names_3 etc., depending on the amount of
records:-)



regards

Andrew Scott
ANZ eCommerce Centre
* Ph 9273 0693  
* [EMAIL PROTECTED]


-----Original Message-----
From: Gavin Myers [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2000 06:31
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?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to