submitting form with two buttons

agrispappague

New Member
I have 2 buttons in HTML form. And both of them should submit the form. I would need to capture which button has been clicked so i can use it to perform different actions based on which button was clicked.I am able to submit the form with both the buttons but how would i capture which button was clicked in the php file .\[code\]<INPUT type="button" name="submit" class="button" class="element_2" value="http://stackoverflow.com/questions/3816940/firstbutton"><INPUT type="button" name="submit1" class="button" class="element_2" value="http://stackoverflow.com/questions/3816940/second button..">\[/code\]i am using post method in Jquery to submit the form. How can i check which HTML button was clicked in server side php script
 
Back
Top