********************************************************************** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message **********************************************************************
Well, thanks for all the replys. They have all been very helpful. I've managed to fix the problem I had through your suggestions. Thanks a lot. Stephen > ---------- > From: Tangorre, Michael[SMTP:[EMAIL PROTECTED]] > Sent: 22 July 2002 12:34 > To: CF-Talk > Subject: RE: Setting a dynamically built list as a session variable. > > nevermind, found the article on it: > http://www.macromedia.com/v1/Handlers/index.cfm?ID=23021&Method=Full > > mike > > > -----Original Message----- > From: Tangorre, Michael > Sent: Monday, July 22, 2002 7:26 AM > To: CF-Talk > Subject: RE: Setting a dynamically built list as a session variable. > > > How come you do not have to lock on MX? > > > -----Original Message----- > From: Stephen Moretti [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 7:24 AM > To: CF-Talk > Subject: Re: Setting a dynamically built list as a session variable. > > > Stephen, > > First up. You don't need to name each of your checkboxes seperately, so > change the input tag to this : > > <input type="checkbox" name="business_types" value="#bus_type#"> > > and your javascript to this : > > <script language="JavaScript"> > <!-- Begin > function checkAll() { > for (var j = 1; j <= document.BusinessType.business_types.length; > j++) > { > box = document.BusinessType.business_types[j]; { > if (box.checked == false) { > box.checked = true; > } else if(box.checked == true){ > box.checked = false; > } > } > } > // End --> > </script> > > > > > My question is how can I create this session variable from this dynamic > list > > of form variables? > > > > Now what you'll get is one form variable called business_types with all > the > checked business types as a comma delimited list. > > To make this form variable into a session variable in your action page is > as > simple as : > > <cfset session.business_types = form.business_types> > > Don't forget get your cflock if your not on CFMX. > > Regards > > Stephen > > > > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

