I'm wondering which is the best way to map <a href=...></a>
hyperlinks performing a HTTP GET to perform a HTTP POST (I'd like to avoid passing all variables in the URL)? For instance, the 2 hrefs
below. Furthermore, I would like also to get rid of the submit
button and use a regular <a href=...></a>
hyperlink. Any suggestions?
<form action="test.php?action=update" method="post" id="cart">
<table>
<tr>
<td>
<a href="test.php?action=delete&id=<?php echo $id ?>" class="r">
remove
</a>
</td>
<td>
<a href="test.php?action=add&id=<?php echo $id ?>" class="r">add</a>
</td>
</tr>
<tr>
...
</tr>
</table>
<div> <button type="submit">Update</button> </div>
</form>