posted 17 years ago
I have one dyanamic form with multiple questions and answers, answers are of radio button types.
When user selects thje radio button in one question, the other questions radio button gets deselected. How can I put one radio button group for one question and other radio button for another set of question and so forth.
here is my code.
**
while(rs2.next()){
ansr = rs2.getString("ANSWR_CODE");
v1.addElement(ansr);
}
while(rs.next()){
%>
<tr>
<%
qstn = rs.getString("SRVY_QSTN");
desc = rs.getString("QSTN_DESC");
%>
<td width="12">
<%= qstn%>.</td>
<td width="400">
<%= desc%> </td>
</tr>
<tr>
<td width="700" colspan="2">
<%
for(i=0;i<v1.size();i++){
ob = v1.get(i).toString();
%>
<input name="radio" type="RADIO" value="<%=ob%>">
<EM>
<%
out.print(ob);
}
%>
Never take anything for granted because you never know when you will lose it