Reading values from Radio buttons

Results 1 to 3 of 3

Thread: Reading values from Radio buttons

  1. #1
    Join Date
    Dec 1969
    Posts
    119

    Default Reading values from Radio buttons

    I want to read values from radio buttons. Since names of all the buttons are same, how can I get to know which button is checked? How do we store that value in database? Does it take char 1 or something else?<BR>Thank you.

  2. #2
    vidya Guest

    Default RE: Reading values from Radio buttons

    Hi Arvind,<BR>Radio buttons can be accessed by their values.<BR>For eg:<BR>Assume that u have two radio buttons with the same name.<BR>&#060;input type = radio name="myradio" value = "Y"&#062;<BR>&#060;input type = radio name="myradio" value = "N"&#062;<BR><BR>Let us assume that the first one is checked i.e the one with the value "Y". Now,Request.form ("myradio") will give the value "Y", since the first one is checked. Hence u can access the radio buttons by its value.<BR><BR>Rgdng, storing in the database, it depends on the size of the value u give.It has nothing like char(1).<BR><BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    119

    Default RE: Reading values from Radio buttons

    Thanks a lot Vidya.<BR>sinha_arvind@usa.net

Posting Permissions

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