I have a for which contains a table of items. The last column has a button in each row called "Place Bid"
When I process the form how can I tell which of the "Place Bid" buttons was actually clicked?
I've been trying to use javascript to set a hidden value, but I've a novice with JS.
Any suggestions?
and example of my for:
<form name="bidding" method="post" action="PlaceBid.jsp">
<table width="200" border="1">
<tr>
<td>Item 1</td> <td> etc etc </td>
<td> <input type="submit" name="Submit" value="Place Bid"> </td>
</tr>
</table>
<input type="hidden" name="whichbutton" value="?">
<input type="hidden" name="by" value="<%=request.getParameter("by")%>">
</form>
When I process the form how can I tell which of the "Place Bid" buttons was actually clicked?
I've been trying to use javascript to set a hidden value, but I've a novice with JS.
Any suggestions?
and example of my for:
<form name="bidding" method="post" action="PlaceBid.jsp">
<table width="200" border="1">
<tr>
<td>Item 1</td> <td> etc etc </td>
<td> <input type="submit" name="Submit" value="Place Bid"> </td>
</tr>
</table>
<input type="hidden" name="whichbutton" value="?">
<input type="hidden" name="by" value="<%=request.getParameter("by")%>">
</form>