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.???# ?
Any help will be appreciated,
Jeff Thomas
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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