RE: FOLLOWUP - Submitting form. Passing variables to template
Yea...I noticed that and removed the hidden fields. Works OK now. Thanks On Thu, 27 Mar 2003 09:35:13 -0500, Ben Doom wrote: > 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 tags to pass > : the input value. > : > : : onFocus="this.blur();"> : name="Selected">#GetUsers.Username# > : > : 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 rather than ? > : > > : > > : > users.cfm > : > > : > > : > > : > : src="#Request.App.image_root#testn.gif"> : color="#00">Edit > : > : src="#Request.App.image_root#testn.gif"> : color="#00">Delete > : > > : > > : > > : > > : > > : > dialog.cfm > : > > : > > : > > : > select * > : > from login > : > > : > > : > > : > > : > > : > : onfocus="this.blur();"> : name="Selected">#GetUsers.Username# > : > ** > : > #GetUsers.Firstname# > : > #GetUsers.Lastname# > : > > : > > : > > : > > : > > : > submit-action.cfm > : > - > : > > : > #FORM.Selected# > : > > : > > : > > : > > : > --- > : > 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: FOLLOWUP - Submitting form. Passing variables to template
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 tags to pass : the input value. : : #GetUsers.Username# : : 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 rather than ? : > : > : > users.cfm : > : > : > : > Edit : > Delete : > : > : > : > : > : > dialog.cfm : > : > : > : > select * : > from login : > : > : > : > : > : > #GetUsers.Username# : > ** : > #GetUsers.Firstname# : > #GetUsers.Lastname# : > : > : > : > : > : > submit-action.cfm : > - : > : > #FORM.Selected# : > : > : > : > : > --- : > 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
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 tags to pass the input value. #GetUsers.Username# 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 rather than ? > > > users.cfm > > > > src="#Request.App.image_root#testn.gif"> color="#00">Edit > src="#Request.App.image_root#testn.gif"> color="#00">Delete > > > > > > dialog.cfm > > > > select * > from login > > > > > > name="Selected">#GetUsers.Username# > ** > #GetUsers.Firstname# > #GetUsers.Lastname# > > > > > > submit-action.cfm > - > > #FORM.Selected# > > > > > --- > 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4