• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Forms and Radio Buttons

 
Ranganath .S.Junpal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i am designin a Quiz s/w whre in Questions are laid out in form of a Question paper. My problem is that for every questions and 4 options i have a Form. At the end i have one submit Button.once i submit i wanna know which radio button is checked in the various form and all forms should get submitted.. The code is some thing like this..

<html>
<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>
<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>

<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>

<form name="one" action="me.jsp" method="post">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
<input type="radio" name="options" value="some thing">
</form>
<input type="submit" value="submit">

</html>

Thank you
Regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make it all one form.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic