this is the basic structure of the code, *Note: value 1 means right, and value 2 means wrong.
HTML Code:
<html> <head> <title>My Test</title> </head> <body> <form name="mytest"> <table cellspacing="1" cellpadding="2" border="0"> <tr> <td>first question.... is it right or wrong ?<input type="radio" name="question1" value="1"> | <input type="radio" name="question1" value="2"> </td> </tr> <tr> <td>this is question 2... is it right or wrong ?<input type="radio" name="question2" value="1"> | <input type="radio" name="question2" value="2"> </td> </tr>
HTML Code:
<tr><td><input type="button" value="Calculate Results" onClick="CalcRes()" /></td></tr>
like:
Total right awnswers : (nr of right awnsers)
Wrong awnsers: (nr of wrong awnsers)
Wrong awnsers: (the names of buttons with vale 2, ex: question1, question4 ... )
I need this to run in Client mode only.please help, i'd be very graceful
