html button action

Solutions on MaxInterview for html button action by the best coders in the world

showing results for - "html button action"
Cary
12 Jan 2021
1A form with two submit buttons. The first submit button submits the form data to "submit_data.php", and the second submits to "send_data.php":
2
3<form action="/submit_data.php" method="get">
4  <label>Name:</label>
5  <input type="text" id="uname" name="uname"><br><br>
6  <label>Age:</label>
7  <input type="text" id="uage" name="uage"><br><br>
8  <label>Address:</label>
9  <input type="text" id="uaddress" name="uaddress"><br><br>
10  <button type="submit">Submit</button>
11  <button type="submit" formaction="/send_data.php">Submit to another page</button>
12</form>