There is a html code
<form>
<button type="submit" name="button-name" value="btn1">button1</button>
<button type="submit" name="button-name" value="btn2">button2</button>
</form>
Is there any way to determine which button was clicked on a server side? I’d like not to use javascript and not to replace them with input.
That’s funny but I have nil in params["button-name"]
This would work if you are working with PHP on the server side.