> I am trying to create a dynamic quiz and I am having problems
> with the form
> variables. I create questions and possible answers using a form which asks
> for the question and if it is true/false or multiple choice. When I select
> true/false it presents me with the option of  selecting true or
> false as the
> correct answer.  If I select multiple choice it presents me with a form to
> input the multiple possible answers and radio buttone for marking the
> correct answer for grading later. This all works fine and I can list the
> questions and select options (weather it be true, false or the multiple
> choice possible answers depending on the type of question. All of the
> possible answers have a radio button for selecting it as the
> correct answer
> and the input fields are named #qid# or question id number. The
> problem I am
> having is that when the selections are made and the form is submitted for
> grading I cannot figure how to identify the #form.???# that is holding the
> value of the selected answer. If the qids are 1 through 10 for
> example, how
> do I set up my query to find the correct answer using WHERE
> qid=#form.???# ?

Look at the Evaluate() function;
qID=Evaluate("form.#myID#")

WHERE qID=#Evaluate("form.#myID#")#

HTH

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to