You are getting the result of every hidden input named Selected in a comma
delimeted list.  Remove all the hidden inputs and use the value statement in
the radio button tags.


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: FlashGuy [mailto:[EMAIL PROTECTED]
: Sent: Thursday, March 27, 2003 8:05 AM
: To: CF-Talk
: Subject: Re: FOLLOWUP - Submitting form. Passing variables to template
:
:
: OK...I've been able to pass the results to my submit-action.cfm
: page but I'm getting ALL the fields of "UserID" from the database
: listed not just the one I checked on the radio
: buttons?
:
: I made one change to the code below on the <input> tags to pass
: the input value.
:
: <td><input type="radio" name="Selected" value="#UserID#"
: onFocus="this.blur();"><input type="hidden" value="#UserID#"
: name="Selected">#GetUsers.Username#</td>
:
: This is the result I get on my submit-action.cfm page:
:
: #FORM.Selected# = 8,8,4,7,5,6,3,1,2
:
: On Thu, 27 Mar 2003 07:57:53 -0500, FlashGuy wrote:
:
: > HI,
: >
: > Below is my code. I've removed some code just to make it easier
: to read. I have three templates.  I'm listing the users from a
: database which gets a radio button inserted
: at
: > the beginning of each field when displayed. When a user clicks
: on one of the radio buttons beside a users name I then want them
: to have the option of deleting or editing
: > that field by clicking on the Edit/Delete graphic buttons. I
: can't get the checked radio button results passed to the
: "submit-action.cfm" page.
: >
: > What am I missing? Should it be a <form> rather than <cfform>?
: >
: >
: > users.cfm
: > ------------
: >
: >     <cfform action="submit-action.cfm" method="post">
: > <input type="image"
: src="<cfoutput>#Request.App.image_root#</cfoutput>testn.gif"><font
:  color="#000000">Edit</font>
: > <input type="image"
: src="<cfoutput>#Request.App.image_root#</cfoutput>testn.gif"><font
:  color="#000000">Delete</font>
: > <CFINCLUDE template="dialog.cfm">
: > </cfform>
: >
: >
: >
: > dialog.cfm
: > ------------
: >
: > <CFQUERY NAME="GetUsers" datasource="#Request.App.dsn#">
: >      select *
: >      from login
: > </cfquery>
: >
: > <table>
: >  <cfoutput query="GetUsers">
: >  <tr bgcolor="#bgColor(currentRow MOD 2,"##DDDDDD","##EEEEEE")#">
: > <td><input type="radio" name="Selected"
: onfocus="this.blur();"><input type="hidden"
: name="Selected">#GetUsers.Username#</td>
: >  <td>**************</td>
: >  <td>#GetUsers.Firstname#</td>
: >  <td>#GetUsers.Lastname#</td>
: > </tr>
: >  </cfoutput>
: > </table>
: >
: >
: > submit-action.cfm
: > ---------------------
: >
: > <h2><cfoutput>#FORM.Selected#</cfoutput></h2>
: >
: >
: >
: >
: > ---------------------------------------------------
: > Colonel Nathan R. Jessop
: > Commanding Officer
: > Marine Ground Forces
: > Guatanamo Bay, Cuba
: > ---------------------------------------------------
: >
: >
: >
: >
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to