</head>
.
.
.
<script>
function check()
{
if (document.forms[0].elements.degree1.value == "Information Systems")
- {
- alert (document.forms[0].elements.degree1.value);
- window.location.href="free.html";
- }
- else if (document.forms[0].elements.degree2[0].checked)
- {
- alert (document.forms[0].elements.degree2[0].value);
- window.location.href="radio.html";
- }
- else if (document.forms[0].elements.check1.checked)
- {
- alert (document.forms[0].elements.check1.value);
- window.location.href="check.html";
- }
}
</script>
.
.
.
</head>
<FORM NAME="studentid" METHOD="post" >
<center>
Name: <br> <INPUT NAME="name" TYPE="TEXT" maxlength="50" size="30"/><p>
Degree Program:<INPUT NAME="degree1" TYPE="TEXT" maxlength="50" size="30"/><p>
Degree Program:
<INPUT TYPE="radio" NAME="degree2" VALUE="IS">IS
<INPUT TYPE="radio" NAME="degree2" VALUE="Acct">Accounting
<INPUT TYPE="radio" NAME="degree2" VALUE="General">General
<INPUT TYPE="radio" NAME="degree2" VALUE="Other">Other<p>
Degree Program:
<INPUT TYPE="checkbox" NAME="check1" VALUE="IS">IS
<INPUT TYPE="checkbox" NAME="check2" VALUE="Acct">Accounting
<INPUT TYPE="checkbox" NAME="check3" VALUE="General">General
<INPUT TYPE="checkbox" NAME="check4" VALUE="Other">Other
<INPUT NAME="submit" TYPE="SUBMIT" value="send information" OnClick="check(); return false;" COLS=40>
<INPUT NAME="reset" TYPE="RESET" value="try again" COLS=40>
</FORM>