Well, this is what happens when you try to work beyond your means. I’m trying to do a questionnaire using radio buttons. The questionnaire has four questions with four possible responses to each. Ultimately I would like to assign certain combinations to trigger text responses…for now I am just trying to identify the boxes that have been checked by writing their values to a new page. I’m sure the if statement is horribly off…any direction on how I could get this going properly is hugely appreciated…
<script type=”text/javascript”>
function getcode()
{
for(varname=0;varname<5;varname+=1)
{
if (document.form[varname].name[varname]==document.form[varname].name[varname].checked)
{
document.write(document.form[varname].name[varname]);
}
else
{
document.write(“not selected”);
}
}
}
</script>