Click to See Complete Forum and Search --> : Radio Buttons


Bill Crawley
November 27th, 2003, 05:09 AM
If I declare in VBScript

<Input type=Radio name=cAgent value=""0"" checked>
<Input type=Radio name=cAgent value=""1"">

How then in my code would I test which radio option has been Selected?

Thread1
November 27th, 2003, 06:01 AM
Client side :
http://www.codeguru.com/forum/showthread.php?threadid=273076

Server side:

If Request.Form("cAgent") = "0" Then
Response.Write "You have selected radio 1"
Else
Response.Write "You have selected radio 2"
End If