use the onmousedown event of each button to fill a hidden form field with a string which identifies the button. then you can retrieve this hidden field upon submission.

dvst8