G'day,
My problem is not one that is overly complex but i have been unable to find a simple solution to my problem.
My problem is that i have my given form with two submit buttons, for which I'm using images. Once i click on the images, how do i check which image (button) has been clicked?
My form is as follows:
<table width='50%' border='0' align='center'>
<tr align='center'>
<td>Attraction</td>
<td>Adult Price</td>
<td>Child Price</td>
<td>Location</td>
</tr>
<form action="addAttractions.jsp" method="post">
<% out.println(tr); %> // Outputs table rows of given data
<tr>
<td>
<input type="image" name ="Update" src="Images/b_edit.png" alt="Submit button1">
<input type="image" name ="Delete" src="Images/b_delete.png" alt="Submit button2">
</td>
</tr>
</form>
</table>
I'm unsure how to get the param value for the image which was clicked.
Your appreciation would be much appreciated.
Regards,
TC