I have a form that should have two submit buttons. One to post the data to the database, and the other to carry certain variables over to the next page.
Problem is, only one works. It seems the same form will not be posted twice.
e.g.
<form name=name method=post>
<some fields here>
<input...
I have a function which i want to call on the submit of a form.
e.g.
<form>
some code
<input type=submit name=somename onClick=document.form.action=page2.jsp>
<% if (here i want the code that says implement "if" if the submit button is pressed). I'm trying...
I have a "var". How can i get its value in the form of a string in JSP ?
e.g.
<script>
var x = 'something';
</script>
<% String y = "???" %>
I want the value of x in string y.
Thanks for your help
I have a javascript function that opens a different page depending upon user selection from a combo box. I want to capture the result of that function in a string.
e.g.
<select name="abc" onchange="JavaScript:ChoiceSelection(options[options.selectedIndex].value);">...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.