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
    • 375
    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:-

    1. <input type="submit" name="submit_button" value="Submit" />
    2. <input type="submit" name="update_button" value="Update" />

    And in the top add the following php code:-

    1. <?php
    2. if (isset($_POST['submit_button'])) {
    3. //you can set the form to submit
    4. } else if (isset($_POST['update_button'])) {
    5. //you can set the form to update
    6. }
    7. ?>

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: