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:-
<input type="submit" name="submit_button" value="Submit" />
<input type="submit" name="update_button" value="Update" />
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
}
?>
0 Comment(s)