two submit buttons in the form?!
Hi,
I have a form with:
- <button id="btnAccept" type="submit" style="width: 200px;">Accept</button>
when the user clicks on it then it will post to
accept_leave.php
I also have
decline_leave.php so there should be another button:
- <button id="btnDecline" type="submit" style="width: 200px;">Decline</button>
my current form is:
- <form id="frmLeave" method="post" action="review_leave.php">
so how can I deal with the
btnDecline? How to put it in the same form but when the user clicks it then it should post to
decline_leave.php?