I want to get the numeric value from <button> html tag into php script.
When I use such form:
<input type=submit name=button_id value=Button1>
<input type=submit name=button_id value=Button2>
it' possible to get value $button_id which
can "Button1" or "Button2", depending on pressed button. It' ok.
Now I want to get numeric value for $button_id like "1", "2", but in the same time I want that the button still have altenative string value like "Button1".
I tried such form:
<button type=submit name=button_id value=1>Button1</button>
<button type=submit name=button_id value=2>Button2</button>
In this case It always sent me "Button2" not "2" or entire array if I used button_id[].
How to pass numeric id's or how to determine which button was pressed ???