Hi Friends
I have a form having multiple field such as option button set and checkbox with different names and values and on next page i want to get there name and value. The problem is that if i only use/checked option button i got proper names of object (option button) and there values but once i checked option button and checkbox too i got some of the values twice also on wrong possition on next page why ?
here is my form and codes for you
Form
<form action="Survey_Saved.asp" method="post">
<table width="876" border="1" cellpadding="1" bordercolor="#000000" class="style11">
<tr class="style11"><td width="325"><strong>Question Detail</span></strong></td>
<td width="146"><div align="center"><strong>Completely Disagree</strong></div></td>
<td width="71"><div align="center"><strong> Disagree</strong></div></td>
<td width="55"><div align="center"><strong>Agree</strong></div></td>
<td width="120"><strong>Completely Agree</strong></td>
<td width="119"><div align="left"><strong> Best Question </strong></div></td>
<tr class=style11><td>My work is interesting and I am committed to it. ?</td><td><div align=center><input name=Qst1 type=radio value=1></div></td><td><div align=center><input name=Qst1 type=radio value=2></div></td><td><div align=center><input name=Qst1 type=radio value=3></div></td><td><div align=center><input name=Qst1 type=radio value=4></div></td><td><input name=Best_Qst type=Checkbox value=1></td></tr><tr class=style11><td>I am clear about what is included in my working tasks. ?</td><td><div align=center><input name=Qst2 type=radio value=1></div></td><td><div align=center><input name=Qst2 type=radio value=2></div></td><td><div align=center><input name=Qst2 type=radio value=3></div></td><td><div align=center><input name=Qst2 type=radio value=4></div></td><td><input name=Best_Qst type=Checkbox value=2></td></tr><tr class=style11><td>I am being developed in my job. ?</td><td><div align=center><input name=Qst3 type=radio value=1></div></td><td><div align=center><input name=Qst3 type=radio value=2></div></td><td><div align=center><input name=Qst3 type=radio value=3></div></td><td><div align=center><input name=Qst3 type=radio value=4></div></td><td><input name=Best_Qst type=Checkbox value=3></td></tr><tr class=style11><td>I feel that I can influence matters which concern my working situation. ?</td><td><div align=center><input name=Qst4 type=radio value=1></div></td><td><div align=center><input name=Qst4 type=radio value=2></div></td><td><div align=center><input name=Qst4 type=radio value=3></div></td><td><div align=center><input name=Qst4 type=radio value=4></div></td><td><input name=Best_Qst type=Checkbox value=4></td></tr>
</table>
End of Section
<INPUT TYPE="submit" VALUE="SAVEINFO">
</form>
Codes to get values and names on next page
For Each field in Request.Form
Response.Write(field & " = " & Request.Form(field) & "<br>")
Next