over 9 years ago
Hello Reader if you need two or more submit button in a single html form then you learn from the code below:-
For the form the html will go like this:-
And in the top add the following php code:-
- <?php
- if (isset($_POST['submit_button'])) {
- //you can set the form to submit
- } else if (isset($_POST['update_button'])) {
- //you can set the form to update
- }
- ?>
<?php if (isset($_POST['submit_button'])) { //you can set the form to submit } else if (isset($_POST['update_button'])) { //you can set the form to update } ?>
0 Comment(s)