Radio Button Problems

Results 1 to 4 of 4

Thread: Radio Button Problems

  1. #1
    CParks Guest

    Default Radio Button Problems

    I am having problems updating a database using Radio Buttons. Here is an example of my code:<BR><BR>&#060;P ALIGN="center"&#062;&nbsp;&nbsp;&nbsp;&nbsp; &#060;INPUT TYPE="radio" &#060;%=strDiscountMonthsFlag%&#062; VALUE="MON" NAME="radType"<BR> ONCLICK="radType_onClick" TABINDEX="2" CHECKED&#062;Months Free<BR><BR>There are 4 buttons, all named &#039radtype&#039. How do I indicate which button is selected?

  2. #2
    Gundi Guest

    Default RE: Radio Button Problems

    Give different values to each radio button and let the name be same.

  3. #3
    Join Date
    Dec 1969

    Default RE: Radio Button Problems

    Hi <BR>You can refer to the radio button using javascript..<BR>[0].....<BR>hope it helps..<BR>Tracy

  4. #4
    Join Date
    Dec 1969

    Default RE: Radio Button Problems

    You have the same name. But different values. You could write like this.<BR>If request("radType") = "MON" then<BR> do something<BR>elseif request("rsdType") = "TUES" then<BR> do something<BR>elseif request9"rsType")= "WED"<BR> do something<BR>end if<BR>You can do this by using CASE also instead of If and elseif.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts