i have a set with radio buttons.
on submit i need to check if one of them is selected then redirect to a page.
following code is giving error:
<form name="q1" method="post" >
<h4>Please answer the following questions:</h4>
1.What is your Education qualifaction?<br>
<input type="radio" name="r1" value="r1" >Graduction<br>
<input type="radio" name="r1" value="r2" >PostGradution<br>
<input type="radio" name="r1" value="r3" >other<br><br>
2.What is your field of Intrest?<br>
<input type="radio" name="r4" value="r4" >Playing Games<br>
<input type="radio" name="r4" value="r5" >Reading Books<br>
<input type="radio" name="r4" value="r5" >sleeping<br>
<p align="center">
<input type="submit" value="next">
<% if(request.getParameter("r1").equals("r1"))
{
%>
<jsp:forward page="LoginSuccess.jsp" />
<%
}
%>
</form>
on submit i need to check if one of them is selected then redirect to a page.
following code is giving error:
<form name="q1" method="post" >
<h4>Please answer the following questions:</h4>
1.What is your Education qualifaction?<br>
<input type="radio" name="r1" value="r1" >Graduction<br>
<input type="radio" name="r1" value="r2" >PostGradution<br>
<input type="radio" name="r1" value="r3" >other<br><br>
2.What is your field of Intrest?<br>
<input type="radio" name="r4" value="r4" >Playing Games<br>
<input type="radio" name="r4" value="r5" >Reading Books<br>
<input type="radio" name="r4" value="r5" >sleeping<br>
<p align="center">
<input type="submit" value="next">
<% if(request.getParameter("r1").equals("r1"))
{
%>
<jsp:forward page="LoginSuccess.jsp" />
<%
}
%>
</form>