Ozzie
07-20-2003, 03:33 PM
Hi
I am very new to this and would love some help to manipulate the values of a selected radio button in a quiz I have worked on.
I have a quiz of 10 questions. I then email the results of the quiz to myself. See code below. I woul like to be able to score each answer and add that value t the bottom of the email.
Can anyone help, please?
<script language="JavaScript">
function onSubmit(form)
{
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM enctype="text/plain" name="form" method="post" action='mailto:me@myemail.net?subject=Test Results' >
<br>
<div align="left"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<h2>Sample Test</h2>
<tr>
<td bgcolor="#FFFFFF" valign="top" align="left" colspan="3" height="5034">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" height="5010">
<table width="100%">
<tr valign=top>
<td height="4" class="questions" width="22"> </td>
<td height="4" class="questions" width="310">
Please type your name in the text box below.<br>
<br>
<input type="Text" name="fullname" size="60">
<br>
</td>
<td colspan="2" height="4" class="tions"> </td>
</tr>
<tr valign=top>
<td height="70" class="tions" width="22">1.</td>
<td colspan="3" height="70" class="tions">What is the shortcut
command for shutting down the computer?<br>
<br>
<input type="radio" name="1" value="a">
Alt + X<br>
<input type="radio" name="1" value="b">
Ctrl + Alt + Delete<br>
<input type="radio" name="1" value="c">
Ctrl + Esc<br>
<input type="radio" name="1" value="d">
Ctrl + S</td>
</tr>
<tr valign=top>
<td height="67" class="tions" width="22">2.</td>
<td colspan="3" height="67" class="tions">If you have typed
a 5-page document, but only want to print the first two pages.
What printer command should you select? <br>
<br>
<input type="radio" name="2" value="a">
print all <br>
<input type="radio" name="2" value="b">
from ___ to ___<br>
<input type="radio" name="2" value="c">
page setup<br>
<input type="radio" name="2" value="d">
print preview</td>
</tr>
<tr valign=top>
<td height="2" width="22" class="tions"> </td>
<td colspan="3" height="2" class="tions"> </td>
</tr>
<tr valign=top>
<td height="11" width="22" class="tions">3.</td>
<td colspan="3" height="11" class="tions">Which of the following
describes the physical components of a computer, such as the
monitor, keyboard, and storage devices? <br>
<br>
<input type="radio" name="3" value="a">
software<br>
<input type="radio" name="3" value="b">
shareware<br>
<input type="radio" name="3" value="c">
hardware<br>
<input type="radio" name="3" value="d">
programs </td>
</tr>
<br>
<td valign="middle" align="center" height="25" colspan="3">
<p><br>
<input type= submit value="Submit Test">
<br>
<br>
</p>
</td>
</tr>
</table>
</form>
</body>
</html>
I am very new to this and would love some help to manipulate the values of a selected radio button in a quiz I have worked on.
I have a quiz of 10 questions. I then email the results of the quiz to myself. See code below. I woul like to be able to score each answer and add that value t the bottom of the email.
Can anyone help, please?
<script language="JavaScript">
function onSubmit(form)
{
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM enctype="text/plain" name="form" method="post" action='mailto:me@myemail.net?subject=Test Results' >
<br>
<div align="left"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<h2>Sample Test</h2>
<tr>
<td bgcolor="#FFFFFF" valign="top" align="left" colspan="3" height="5034">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="left" height="5010">
<table width="100%">
<tr valign=top>
<td height="4" class="questions" width="22"> </td>
<td height="4" class="questions" width="310">
Please type your name in the text box below.<br>
<br>
<input type="Text" name="fullname" size="60">
<br>
</td>
<td colspan="2" height="4" class="tions"> </td>
</tr>
<tr valign=top>
<td height="70" class="tions" width="22">1.</td>
<td colspan="3" height="70" class="tions">What is the shortcut
command for shutting down the computer?<br>
<br>
<input type="radio" name="1" value="a">
Alt + X<br>
<input type="radio" name="1" value="b">
Ctrl + Alt + Delete<br>
<input type="radio" name="1" value="c">
Ctrl + Esc<br>
<input type="radio" name="1" value="d">
Ctrl + S</td>
</tr>
<tr valign=top>
<td height="67" class="tions" width="22">2.</td>
<td colspan="3" height="67" class="tions">If you have typed
a 5-page document, but only want to print the first two pages.
What printer command should you select? <br>
<br>
<input type="radio" name="2" value="a">
print all <br>
<input type="radio" name="2" value="b">
from ___ to ___<br>
<input type="radio" name="2" value="c">
page setup<br>
<input type="radio" name="2" value="d">
print preview</td>
</tr>
<tr valign=top>
<td height="2" width="22" class="tions"> </td>
<td colspan="3" height="2" class="tions"> </td>
</tr>
<tr valign=top>
<td height="11" width="22" class="tions">3.</td>
<td colspan="3" height="11" class="tions">Which of the following
describes the physical components of a computer, such as the
monitor, keyboard, and storage devices? <br>
<br>
<input type="radio" name="3" value="a">
software<br>
<input type="radio" name="3" value="b">
shareware<br>
<input type="radio" name="3" value="c">
hardware<br>
<input type="radio" name="3" value="d">
programs </td>
</tr>
<br>
<td valign="middle" align="center" height="25" colspan="3">
<p><br>
<input type= submit value="Submit Test">
<br>
<br>
</p>
</td>
</tr>
</table>
</form>
</body>
</html>