Click to See Complete Forum and Search --> : How to submit the checked status of radio button group to server?
Hi All,
I need many radio button groups shew on my page and submit their checked status to server side, how can I do that?
Any help is welcome,thanks in advance!
Lily
What part of this are you having trouble with? It should be no big deal to show the values... Perhaps post the code you are using...
Sorry, I don't write clear.
I have trouble with the following code:
.....
<FORM name="setTempForm" method="post">
<TABLE>
<TBODY>
<TR bgColor=#eeeeee>
<TD noWrap align=left><INPUT type="checkbox" name="Dos"></TD>
<TD noWrap align=left>
<INPUT type="radio" name="<%= _p0_name %>" value="5" <%= _p0_level.equals("5")?checked="true":"" %> > 5
<INPUT type="radio" name="<%= _p0_name %>" value="4" <%= _p0_level.equals("4")?checked="true":"" %> > 4
<INPUT type="radio" name="<%= _p0_name %>" value="3" <%= _p0_level.equals("3")?checked="true":"" %> > 3
<INPUT type="radio" name="<%= _p0_name %>" value="2" <%= _p0_level.equals("2")?checked="true":"" %> > 2
<INPUT type="radio" name="<%= _p0_name %>" value="1" <%= _p0_level.equals("1")?checked="true":"" %> > 1
<INPUT type="radio" name="<%= _p0_name %>" value="0" <%= _p0_level.equals("0")?checked="true":"" %> > 0
<INPUT type="hidden" name="<%= _p0_name %>" value="">
</TD>
</TR>
<TR>
.....
</TR>
</TBODY>
</TABLE>
</FORM>
.........................
These are many radio button groups(each belong to on <TR> element>). People can click them, that means, the 'checked' property of these specified radio item s would be 'true'. what I want is to submit the values of these "checked" properties to server side? I try to user hidded field, but no reflect.
Dave,
Yes, that's is just what I want. I modify my code according to your suggestion and now I get the value on sever side. So much thanks for you!
Lily