Hi guys,
I got a html form which calls itself when clicked:
The form has 2 button. One is "submit" which when clicked will get the values from the textfiled and pass it onto my variables I declared above (not shown in the code above), however when i click on my 2nd button, it should let me change state so I can process what I have entered.
I just want to know how i can get to know when the 2nd "finished" button has been clicked in jsp.
Thanks heaps.
I got a html form which calls itself when clicked:
Code:
<%
// This code deals state ADD_MORE_TRACKS
if(state == ADD_MORE_TRACKS || state == -1)
{
out.println("Please add your track listing");
%>
<form method="post" action="input.jsp">
<table>
<tr><td>Track Name:</td> <td><input type="text" name="title" size="20"></td></tr>
<tr><td>Track Time: </td> <td><input type="text" name="time" size="20"></td></tr>
<tr><td>Track Rating: </td> <td><input type="text" name="rating" size="20"></td></tr>
<tr><td><input type="submit" name = "moreElement" value="Add More Element"></td> <td><input type="button" name="finishedButton" value="Finish"></td> </tr>
</table>
</form>
<% }
%>
I just want to know how i can get to know when the 2nd "finished" button has been clicked in jsp.
Thanks heaps.
Comment