[B]Guys I really need your help here,
I’m looking to write a page where you can pick from 4 yes or no questions using radio buttons and it will give you the answer & statement after all the questions have been entered.
I Want to try to do it without a submit button and for it to show a reliant statement underneath the radio buttons.
How can I do this?
[B]NONE WORKING PAGE DESIGN HERE TO GIVE YOU A CLEAR IDEA OF PAGE:
[CODE]<html>
<head>
</head>
<body>
<table width=”560″ border=”0″ align=”center” cellpadding=”2″ cellspacing=”0″>
<tr valign=”top”>
<td height=”119″><table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”2″>
<tr valign=”top”>
<td width=”3%” nowrap> </td>
<td width=”72%” nowrap> </td>
<td width=”13%” nowrap><div align=”center”></div></td>
<td width=”5%” nowrap><p align=”center”><strong>YES</strong></p></td>
<td width=”3%” nowrap><div align=”center”></div></td>
<td width=”4%” nowrap><p align=”center”><strong>NO</strong></p></td>
</tr>
<tr valign=”top”>
<td nowrap><p>1.</p></td>
<td nowrap><p>Question 1 here </p></td>
<td nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q1″ type=”radio” value=”YES”>
</div></td>
<td valign=”middle” nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q1″ type=”radio” value=”NO”>
</div></td>
</tr>
<tr valign=”top”>
<td nowrap><p>2.</p></td>
<td nowrap><p>Question 2 here </p></td>
<td nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q2″ type=”radio” value=”YES”>
</div></td>
<td valign=”middle” nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q2″ type=”radio” value=”NO”>
</div></td>
</tr>
<tr valign=”top”>
<td nowrap><p>3.</p></td>
<td nowrap><p>Question 3 here </p></td>
<td nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q3″ type=”radio” value=”YES”>
</div></td>
<td valign=”middle” nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q3″ type=”radio” value=”NO”>
</div></td>
</tr>
<tr valign=”top”>
<td nowrap><p>4.</p></td>
<td nowrap><p>Question 4 here </p></td>
<td nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q4″ type=”radio” value=”YES”>
</div></td>
<td valign=”middle” nowrap><div align=”center”></div></td>
<td valign=”middle” nowrap><div align=”center”>
<input name=”q4″ type=”radio” value=”NO”>
</div></td>
</tr>
</table></td>
</tr>
</table>
<br>
<table width=”1″ border=”1″ align=”center” cellpadding=”0″ cellspacing=”0″ bordercolor=”#000000″>
<tr>
<td width=”500″><table width=”560″ border=”0″ align=”center” cellpadding=”2″ cellspacing=”0″>
<tr valign=”middle”>
<td width=”13%”><p>Decision:</p></td>
<td width=”87%”><strong>CORRECT / CLOSE / WRONG </strong></td>
</tr>
<tr valign=”top”>
<td colspan=”2″><p>Statement: <br>
“Well done you are correct with your choices, thankyou for taking your time” <br>
/<br>
“So close but you didn’t get it” <br>
/<br>
“Sorry you wern’t good enough at all!” <br>
</p></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
</body>
</html>
[B]HOW IT SHOULD WORK:
Basically the raido button answer choices are:
[INDENT]Q1: YES or NO
Q2: YES or NO
Q3: YES or NO
Q4: YES or NO[/INDENT]
Statements possibly shown are:
[INDENT][U]Correct
“Well done you are correct with your choices, thankyou for taking your time”
[U]Close
“So close but you didn’t get it”
[U]Wrong
“Sorry you wern’t good enough at all!”[/INDENT]
Questions and resulatant reference each others answers
Answer matrix is:
[INDENT][B]Q1 – Q2 – Q3 – Q4 – Answer
Y – N – N – N – WRONG
Y – N – Y – Y – CLOSE
Y – N – Y – N – CLOSE
Y – Y – N – Y – CLOSE
Y – Y – N – N – CLOSE
Y – Y – Y – Y – CORRECT
Y – Y – Y – N – CORRECT
N – N – N – Y – WRONG
N – N – N – N – WRONG
N – N – Y – Y – CLOSE
N – N – Y – N – CLOSE
N – Y – N – Y – CLOSE
N – Y – N – N – CLOSE
N – Y – Y – Y – CORRECT
N – Y – Y – N – CORRECT[/INDENT]
Also I want the answer to be a hidden variable to be passed to another part of the form.
[I]Guys can you help me with this I’m really stuck!
Thanks!