neha agg

Greenhorn
+ Follow
since Sep 30, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neha agg

while(rs.next())
{

String id=rs.getString("id");
String question=rs.getString("question");
String option1=rs.getString("option1");
String option2=rs.getString("option2");
String option3=rs.getString("option3");
String option4=rs.getString("option4");
String answer=rs.getString("answer");
%>

<form name="f1">
<%= id %> <%= question %> <br/>
<input type="radio" name="op1" id="op11" value="<%= option1%>" /> <%= option1 %> <br/>
<input type='radio' name="op1" value="<%= option2%>" /> <%= option2 %> <br/>
<input type='radio' name="op1" value="<%= option3%>" /> <%= option3 %> <br/>
<input type='radio' name="op1" value="<%= option4%>" /> <%= option4 %><br/>
<input type='submit' name='btn' value='click' onclick="call()"/>
</form>


<script>
function call()
{

var selection = document.f1.op1;

for (var i=0; i<selection.length; i++)
if (selection[i].checked == true)
document.write(selection[i].value); //how to take this value in inser query in jsp



System.out.println("inserted");

}


</script>



<%


break;

}

please help!!!
document.write(selection[i].value); //how to take this value in inser query in jsp
11 years ago
JSP
i have made a jsp page in which course details have been given,now i want that by clicking on that hyperlinks,firstly it should check whether user is logged in or not,if looged then a new jsp page should be opened and if not logged in that signup page should be opened....

11 years ago
JSP