Hi there,
Let's say I have this HTML code below...
<html>
<head>
<title>Page 1</title>
</head>
<body>
<form method="post" action="page2.jsp>
<table>
<tr>
<td>John Doe</td>
<td><input id="name1" name="name" type="submit" value="Edit" /></td>
<tr>
<tr>
<td>Steve Smith</td>
<td><input id="name2" name="name" type="submit" value="Edit" /></td>
<tr>
<tr>
<td>Peter Pipper</td>
<td><input id="name3" name="name" type="submit" value="Edit" /></td>
<tr>
</table>
</form>
</body>
</html>
How can I determine what submit button was pressed when I go to page2.jsp? For example, when I clicked on the first button, I want the name "John Doe" or input id "name1" at page2.jsp.
Thanks in advance :)