I know that I cannot make a POST directly through < a> tag, but can I wrap it in a form, like:
<form action="theUrl" method="POST">
<input type="hidden" name="param1" value="key1" />
<a href="/url1" onclick="submit()">key1</a>
<input type="hidden" name="param2" value="key2" />
<a href="/url2" onclick="submit()">key2</a>
</form>
In this way, when I click on the url1, how can the form make a POST with the value='key1'? Thank you very much!