u chould serialize it to wddx or other xml format. Justin
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: 04 September 2002 10:48 > To: [EMAIL PROTECTED] > Subject: Re: [ cf-dev ] Array as form var > > > > <form> > <cfloop index="i" from="1" to="#ArrayLen(queryname.options)#"> > <cfoutput><input type="checkbox" name="Levels" value=" > #queryname.options[i]#"> #queryname.options[i]# <br></cfoutput> > </cfloop> > </form> > > Then on the processing page you have the variable Form.Levels, which will > either not exist if they haven't selected anything, or be a list of the > chosen values. > > > Duncan Cumming > IT Manager > > http://www.alienationdesign.co.uk > mailto:[EMAIL PROTECTED] > Tel: 0141 575 9700 > Fax: 0141 575 9600 > > Creative solutions in a technical world > > ---------------------------------------------------------------------- > Get your domain names online from: > http://www.alienationdomains.co.uk > Reseller options available! > ---------------------------------------------------------------------- > ---------------------------------------------------------------------- > > > > > "Tim Blair" > > <[EMAIL PROTECTED] To: > <[EMAIL PROTECTED]> > om> cc: > > Subject: [ cf-dev ] > Array as form var > 09/04/02 > > 10:44 AM > > Please > > respond to > > dev > > > > > > > > > Hey all, > > I'm having a Monday morning head on a Wednesday... > > I'm pulling a query containing different options (access levels) that a > user can have. These are then displayed as check boxes on an HTML form > to allow levels to be selected for that user. > > E.g. of levels query: > > <cf_querysim> > accesslevels > at_id,at_description > 1|Level 1 > 2|Level 2 > 3|Level 3 > 4|Level 4 > </cf_querysim> > > So how do I go about pushing this (as an array - [1,2,3,4]) through as a > form var? At the end of it (after form submission) I want something > like the following, listing each of the access levels that have been > selected: > > levels[1] = 1 > levels[4] = 4 > > Or I'd prefer it to come back as a list that I can simply iterate > through... :o\ > > Anyone care to help? > > Cheers, > > Tim. > > > ------------------------------------------------------- > Tim Blair > Web Application Engineer, Rawnet Limited > Direct Phone : +44 (0) 1344 393 441 > Switchboard : +44 (0) 1344 393 040 > ------------------------------------------------------- > rawnet ltd > Atrium Court > Bracknell [EMAIL PROTECTED] > Berkshire Tel : +44 (0) 1344 393 040 > RG12 1BW, UK http://www.rawnet.com > ------------------------------------------------------- > This message may contain information which is legally > privileged and/or confidential. If you are not the > intended recipient, you are hereby notified that any > unauthorised disclosure, copying, distribution or use > of this information is strictly prohibited. Such > notification notwithstanding, any comments, opinions, > information or conclusions expressed in this message > are those of the originator, not of rawnet limited, > unless otherwise explicitly and independently indicated > by an authorised representative of rawnet limited. > ------------------------------------------------------- > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
