Results 1 to 4 of 4

Thread: Getting RADIO button VAlue(ASP)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    335

    Getting RADIO button VAlue(ASP)

    I have a page which has a Radio button and when selected
    i want to store the Value of selection into an arry
    when they click say the next link

    this did not work

    Dim ansNum

    ansNum = rsRecord.Fields("ID")

    ansNum = ansNum-2


    arrCanAns(ansNum) = <"choice.Value">

    any Idea???

    Thanks
    Please Help Each other.
    if you can't at least
    Do not Hurt Each Other

  2. #2
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    more information please

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    335
    Well the page is containing Questions Using Paging
    there is one question per page and I want to store
    users respnse or Selection (A, B, C or D) in an array called
    arrCandidate whenever they move to the next record


    my Radio button looks like the following

    <FORM ACTION="Grade.asp" Method="post" id=FORM1 name=FORM1>


    Question
    <% Response.Write rsRecord.Fields("QuestionID") %>
    <br>
    <br>
    <% Response.Write rsRecord.Fields("TheQuestion")%>
    <br><br><B>A )</B><INPUT TYPE="RADIO" NAME "choice" VALUE ="A">
    <% Response.write rsRecord.fields("ans1") %>
    <br><B>B )</B><INPUT TYPE="RADIO" NAME "choice" VALUE= "B">
    <% Response.write rsRecord.fields("ans2") %>
    <br><B>C )</B><INPUT TYPE="RADIO" NAME "choice" VALUE ="C">
    <% Response.write rsRecord.fields("ans3") %>
    <br><B>D )</B><INPUT TYPE="RADIO" NAME "choice" VALUE= "D">
    <% Response.write rsRecord.fields("ans4") %>

    </FORM>
    Last edited by bell; Oct 30th, 2002 at 04:24 PM.
    Please Help Each other.
    if you can't at least
    Do not Hurt Each Other

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Posts
    335
    Any help
    Please Help Each other.
    if you can't at least
    Do not Hurt Each Other

Posting Permissions

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



Click Here to Expand Forum to Full Width