Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (20.3k points)

I have two submit buttons in a form. How do I determine which one was hit serverside?

1 Answer

0 votes
by (40.7k points)

If you are giving each one a name, then the clicked one will be sent through like any other input.

Example:

<input type="submit" name="button_1" value="Click me">

Related questions

0 votes
2 answers
asked Sep 2, 2019 in Web Technology by Tech4ever (20.3k points)
0 votes
1 answer
0 votes
4 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...