Actually I found a solution to this shortly after sending the email(a couple of days ago). I just added onto my existing structure. So I have a .Value which equals the value of the input tag, such us "Yes". Then I have in my structure a .Yes = 0; and a .No = 0; If I were code those zeros as the values of the input tags, then how would I know if they picked Yes or No? I need to know that if they were to go back to a form so it can be populated with their answers. Now for both to have the same value like that example is a rare case.
Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion"> ----- Original Message ----- From: "Jeffry Houser" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, October 18, 2001 1:16 AM Subject: Re: Building a answer key > Is there any reason why the answer should be dynamic, as opposed to hard > coded? If I understand what you are doing, I see nothing inherently wrong > with it. > > At 11:19 AM 10/16/2001 -0500, you wrote: > >I am working on a online survey that has 12 seperate forms to it. Each > >form consists of Yes/No questions via radio buttons, single select boxes, > >multiple select boxes, and just two text inputs at the very begining. The > >results from each form are stored in a structure that is held within a > >session variable. The session var looks much like this: > > > >Ses.Profile["frm1"].Field1 through Ses.Profile["frm12"].Field2 > > > >Each answer to a question is worth a certain amount of points and > >sometimes can be worth the same amount of points. For example question > >one on form one could be a Yes/No question and both Yes and No for that > >one could be equal to 3. So the setting of the structure when going to > >form two would be(assuming Yes was picked instead of No): > > > >StructUpdate(Ses.Profile["frm1"], "Field1", "Yes"); > > > >What I am trying to figure out is what would be the best way to store my > >answer key for this. The below code is what I have hacked out today, but > >I am curious if I have over complicated how to do the answer(values) key. > > > ><cfscript> > > Answers = StructNew(); > > Answers.FormNumber = ArrayNew(1); > > Answers.FormNumber[1] = StructNew(); > > Answers.FormNumber[1].Field1 = StructNew(); > > Answers.FormNumber[1].Field1.Yes = "3"; > > Answers.FormNumber[1].Field1.No = "3"; > ></cfscript> > > > >For the select boxes, I plan to just have their options equal to IDx and > >then do Fieldx.IDx = "myValue" > > > >Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion"> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get the mailserver that powers this list at http://www.coolfusion.com 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

