Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button problem

Status
Not open for further replies.

jordan11

Technical User
May 24, 2003
150
GB
Hi,
I have a dynamic radio button but I am having problem getting the values of my counter. Insead of it giving the values between 1-5 it gives me the value on no matter which radio button is selected.Can anyone tell me what the problem is . The code is below

Response.Write"<table border=0 width=470 valign=top><tr><td align=right>&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&nbsp;&nbsp;&nbsp;&nbsp;3 &nbsp;&nbsp;&nbsp;4&nbsp;&nbsp;&nbsp;&nbsp;5&nbsp;<br></td></tr></table>"
Do while not oRSc.EOF
response.Write"<table border=0 width=470 valign=top colspan=2><tr><td valign=top>"
Response.Write oRSc("Selection") &"</td><td align=right>"
For scorecounter = 1 to 5

Response.Write "<input type=radio name="& Strtype & "." & oRSc("id") & "value=" & CStr(scorecounter) &">"

Next

Response.Write"</td></tr></table>"
oRSc.Movenext
loop


Thanks for all your help JJ
 
how are you retrieving the value of the radio button...

request.form("nameofyourradiobutton")

please show us that part of the code...

-DNG
 

For each item in Request.Form()

response.write Request.Form(item)
end select

Next



I will eventaullay update the values to my database.But I am trying to see what type of data I am getting. I also have select boxes and checkboxes but that data is find.

Thanks JJ
 
Try doing a "View Source" on the page generated by your ASP code... it looks like perhaps there needs to be a space between the radio button named and value... unless oRSc("id") ends in a space.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top