First suggestion. This calls for a radio button rather than a checkbox.
Radio buttons are to choose one from a list of choices.
Checkboxes allow individually choosing yes and now for each item in a
list of choices
Second suggestion. You might want to start scoping your variables.
Each set of variables in memory are available in their own scope, or
set of data. Examples include FORM, URL, REQUEST, APPLICATION, etc. If
you want to make sure you are checking the variable passed by the
form, use FORM.Question1.
Third suggestion.
When you use the isDefined, it wants to check the variable name, not
the contents of the variable.
try isDefined('question1'), or better yet, isDefined('FORM.Question1')
Someone else hopefully will chime in on your actual validation question.
Jerry
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2080
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15