How can I use multiple submit buttons in an HTML form?
Answers
Answered by
0
<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<button type="submit">Submit</button><br>
<button type="submit" formaction="/action_page2.php">Submit to another page</button>
</form>
Similar questions
Math,
6 months ago
India Languages,
6 months ago
Computer Science,
11 months ago
Math,
1 year ago
Music,
1 year ago