I want a form which has two submit buttons. The form has some hidden fields which are common while submitting both buttons. So with different buttons, I want to post a different set of inputs/values to the same target url. Something like
<form method='POST' action='/method/data' >
<input type="text" name="field1" />
<!--...some other fields...-->
<input type="submit" name="m1" value="v1" />
<input type="submit" name="m2" value="v2" />
</form>
Is it possible that field1 should be submitted only when m1 button is pressed and not with m2?