|
-
Oct 30th, 2002, 01:14 PM
#1
Thread Starter
Hyperactive Member
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

-
Oct 30th, 2002, 01:22 PM
#2
Hyperactive Member
-
Oct 30th, 2002, 01:34 PM
#3
Thread Starter
Hyperactive Member
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

-
Oct 30th, 2002, 04:25 PM
#4
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|