Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to make multiple submit button in a form

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 351
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: