I have a php form, submitting using AJAX. The form has multiple submit buttons, the server side is not able to understand which button is clicked.
How to pass the information of the inputType="submit"
button clicked to the server side using AJAX?
I have a php form, submitting using AJAX. The form has multiple submit buttons, the server side is not able to understand which button is clicked.
How to pass the information of the inputType="submit"
button clicked to the server side using AJAX?
You can have name
for buttons.
input type="submit" name="submit_1"
Then you can check the name exist in your payload.