this may be looking a little awkard but it works... try
item1 = structNew(); item1.department = 'Department 1; item1.name = 'Bill Jones; item1.email = '[EMAIL PROTECTED]; additem = arrayAppend(request.contact, item1); item2 = StructNew(); item2.department = 'Department 2; item2.name = 'Joe Jones; item2.email = '[EMAIL PROTECTED]; additem = arrayAppend(request.contact, item2); cheerio Birgit Thursday, January 10, 2002, 7:40:47 PM, you wrote: OH> On my Application.cfm page, I want to use an array to populate a feedback OH> form with contacts, and the response page with the corresponding e-mail OH> addresses in the "to" attribute. OH> This seemed more practical than storing the info in a database, for an OH> amount of data this limited, but still give some flexibility for making OH> changes down the road. OH> So here's a snip from within my CFScript: OH> // department mail addresses OH> // e-mail addresses and contact information dropped into an array of structs OH> to facilitate retrieval and updating OH> request.contact = arrayNew(1); OH> item = structNew(); OH> // DEPARTMENT 1 OH> item.department = 'Department 1; OH> item.name = 'Bill Jones; OH> item.email = '[EMAIL PROTECTED]; OH> additem = arrayAppend(request.contact, item); OH> // DEPARTMENT 2 OH> item.department = 'Department 2; OH> item.name = 'Joe Jones; OH> item.email = '[EMAIL PROTECTED]; OH> additem = arrayAppend(request.contact, item); OH> .... and so on. OH> The problem is, the last entry keeps overwriting the structures at each OH> array position. In other words, request.contact[1] contains the data for OH> array position 10, and position 2 contains the data for 10 ... and so on. OH> Should position 1 of the array remember what it had initially and not get OH> over written by the time the 2 position is created, and so on? OH> How can I get each position in the array to have structures with discrete OH> and unique information? OH> H. OH> Howard Owens OH> Internet Operations Coordinator OH> www.insidevc.com OH> [EMAIL PROTECTED] OH> AIM: GoCatGo1956 OH> ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona 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

