Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button value question

Status
Not open for further replies.

bullyboy69

Technical User
Mar 12, 2003
9
GB
Hi

I'm trying to make a form using frontpage and vbscript. I have an option group and want the value of the one selected to be passed through when they click on submit. Here it is as a cut down:

<html>

<table>
<body>
<tr>
<td bgcolor="#C0C0C0" class="redtext" width="471">
<p class="text">&nbsp;</td>
<td bgcolor="#C0C0C0" class="redtext">
<p class="text">&nbsp;</td>
</tr>
<tr>
<td width="471" class="text">
<p class="text">Excellent</td>
<td align="center">
<p class="text">
<INPUT TYPE=RADIO NAME="Course_Administration" value="Excellent"></td>
</tr>
<tr>
<td width="471" class="text">
<p class="text">Very Good</td>
<td align="center">
<p class="text">
<INPUT TYPE=RADIO NAME="Course_Administration" VALUE="Very Good"></td>
</tr>
<tr>
<td width="471" class="text">
<p class="text">Good</td>
<td align="center">
<p class="text">
<INPUT TYPE=RADIO NAME="Course_Administration" VALUE="Good"></td>
</tr>
<tr>
<td height="25" width="471" class="text">
<p class="text">Average</td>
<td height="25" align="center">
<p class="text">
<INPUT TYPE=RADIO NAME="Course_Administration" VALUE="Average"></td>
</tr>
<tr>
<td height="25" width="471" class="text">
Below Average</td>
<td height="25" align="center">
<input type="radio" name="Course_Administration" value="Below Average"></td>
</tr>
<tr>
<td height="25" width="471" class="text">
Poor</td>
<td height="25" align="center">
<input type="radio" name="Course_Administration" value="Poor"></td>
</tr>
</table></div>
</body>
<input type = button name = "B1" value = "Click here" onclick = rr()>
<script language = vbscript>
sub rr
msgbox course_administration.value

end sub
</script>
</html>

Everytime I click on the button I get an error saying "Object doesn't support this property method: 'course_administration.value'

HELP!!!!!

Thanks
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top