473,386 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

identifying which radio button i clicked

I move from one form to another when I click to a radio button. I can
identify which radio button I clicked by trapping its value. but my problem
is that there are a set of radio buttons followed by values being displayed
from a join table.

I want to know the values displayed from the table. so that based on which I
can do my further processing. Like the radio button is showing the name of
student, his id, story id...and 2-3 more things. when I select the first
radio button (its value = 0 ),
how can I know that the selected one is for which student_id and for which
story_id.???

here is my code:
<%
DIM SQL
DIM RSA
DIM BGC
dim iCount

iCount = 0
set RSA = Server.CreateObject("ADODB.Recordset")
RSA.OPEN "SELECT sc.student_id,si.student_name,sc.story_id,
sc.status_student, tc.status_teacher FROM student_content sc, student_info
si, teacher_content tc, story_table st where (sc.student_id = si.student_id
and sc.story_id = st.story_id) and (tc.student_id = si.student_id)",
"DSN=school"

Do while not RSA.EOF
%>
<html>
<head>
<title> none </title>
</head>
<body>
<form method="post" action="doc1.asp">
<table>
<tr>
<td><input type=radio name=RR value=<%=iCount%>></input> <%= RSA.Fields
("student_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("student_name").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("story_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_student").Value%></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_teacher").Value %></td>
</tr>
</table>
</body>
</html>
<%
iCount = iCount + 1
rsa.movenext
loop
%>
<p align="center">
<input type="submit" value="Submit" >
</p>

thanks
Jul 19 '05 #1
1 2743
I happen to get the solution...so please ignore this query
"monika" <mo********@hotmail.com> wrote in message
news:O$**************@tk2msftngp13.phx.gbl...
I move from one form to another when I click to a radio button. I can
identify which radio button I clicked by trapping its value. but my problem is that there are a set of radio buttons followed by values being displayed from a join table.

I want to know the values displayed from the table. so that based on which I can do my further processing. Like the radio button is showing the name of
student, his id, story id...and 2-3 more things. when I select the first
radio button (its value = 0 ),
how can I know that the selected one is for which student_id and for which
story_id.???

here is my code:
<%
DIM SQL
DIM RSA
DIM BGC
dim iCount

iCount = 0
set RSA = Server.CreateObject("ADODB.Recordset")
RSA.OPEN "SELECT sc.student_id,si.student_name,sc.story_id,
sc.status_student, tc.status_teacher FROM student_content sc, student_info
si, teacher_content tc, story_table st where (sc.student_id = si.student_id and sc.story_id = st.story_id) and (tc.student_id = si.student_id)",
"DSN=school"

Do while not RSA.EOF
%>
<html>
<head>
<title> none </title>
</head>
<body>
<form method="post" action="doc1.asp">
<table>
<tr>
<td><input type=radio name=RR value=<%=iCount%>></input> <%= RSA.Fields
("student_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("student_name").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("story_id").Value %></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_student").Value%></td>
<td bgcolor=" & BGC & "> <%= RSA.Fields ("status_teacher").Value %></td>
</tr>
</table>
</body>
</html>
<%
iCount = iCount + 1
rsa.movenext
loop
%>
<p align="center">
<input type="submit" value="Submit" >
</p>

thanks

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
4
by: Jared | last post by:
Radio Button or Check Box and Event Procedures I need to insert either radio buttons or check boxes onto my form. I'm not sure which to use, or if there are other options. I am using the buttons...
3
by: Ferret Face | last post by:
Hello, I have a web page that gets the user to select items from a list of options. This list is a set of independant Radio Buttons. I did not use a Radio Button List because I wanted the...
1
by: Jerry | last post by:
We have a 10-question quiz for kids, each question being a yes or no answer using radio selections. I'd like to keep a current total of yes's and no's at the bottom of the quiz (if the user selects...
16
by: Stuart | last post by:
I have a page where I utilise the left and right cursor keys to change an image, also on this page is a groups of radio buttons, unfortunately when a radio button is clicked the focus for the...
8
by: stefano | last post by:
HI, I have aproblem with XHTML radio button. <form name=" form"> <input name="radio" type="radio" onclick="return false" /> <input name="radio" type="radio" onclick="return false" /> <input...
0
by: jehugaleahsa | last post by:
Hello: I have radio buttons bound to boolean properties in a business object. private void bindRadioButton(RadioButton button, string propertyName) { Binding binding =...
8
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked)...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.