[html] Two submit buttons in one form

Since you didn't specify what server-side scripting method you're using, I'll give you an example that works for PHP

_x000D_
_x000D_
<?php_x000D_
   if(isset($_POST["loginForm"]))_x000D_
   {_x000D_
    print_r ($_POST); // FOR Showing POST DATA_x000D_
   }_x000D_
   elseif(isset($_POST["registrationForm"]))_x000D_
   {_x000D_
    print_r ($_POST);_x000D_
   }_x000D_
   elseif(isset($_POST["saveForm"]))_x000D_
   {_x000D_
    print_r ($_POST);_x000D_
   }_x000D_
   else{_x000D_
_x000D_
   }_x000D_
?>_x000D_
<html>_x000D_
<head>_x000D_
</head>_x000D_
<body>_x000D_
  _x000D_
  <fieldset>_x000D_
    <legend>FORM-1 with 2 buttons</legend>_x000D_
      <form method="post" >_x000D_
      <input type="text" name="loginname" value ="ABC" >_x000D_
_x000D_
     <!--Always use type="password" for password --> _x000D_
     <input type="text" name="loginpassword" value ="abc123" >_x000D_
     _x000D_
     <input type="submit" name="loginForm" value="Login"><!--SUBMIT Button 1 -->_x000D_
     <input type="submit" name="saveForm" value="Save">  <!--SUBMIT Button 2 -->_x000D_
   </form>_x000D_
  </fieldset>_x000D_
_x000D_
_x000D_
_x000D_
  <fieldset>_x000D_
    <legend>FORM-2 with 1 button</legend>_x000D_
     <form method="post" >_x000D_
      <input type="text" name="registrationname" value ="XYZ" >_x000D_
      _x000D_
     <!--Always use type="password" for password -->_x000D_
     <input type="text" name="registrationpassword" value ="xyz123" >_x000D_
     _x000D_
     <input type="submit" name="registrationForm" value="Register"> <!--SUBMIT Button 3 -->_x000D_
   </form>_x000D_
  </fieldset>_x000D_
  _x000D_
_x000D_
</body>_x000D_
</html>
_x000D_
_x000D_
_x000D_

Forms

When click on Login -> loginForm

When click on Save -> saveForm

When click on Register -> registrationForm

Examples related to html

Embed ruby within URL : Middleman Blog Please help me convert this script to a simple image slider Generating a list of pages (not posts) without the index file Why there is this "clear" class before footer? Is it possible to change the content HTML5 alert messages? Getting all files in directory with ajax DevTools failed to load SourceMap: Could not load content for chrome-extension How to set width of mat-table column in angular? How to open a link in new tab using angular? ERROR Error: Uncaught (in promise), Cannot match any routes. URL Segment

Examples related to forms

How do I hide the PHP explode delimiter from submitted form results? React - clearing an input value after form submit How to prevent page from reloading after form submit - JQuery Input type number "only numeric value" validation Redirecting to a page after submitting form in HTML Clearing input in vuejs form Cleanest way to reset forms Reactjs - Form input validation No value accessor for form control TypeScript-'s Angular Framework Error - "There is no directive with exportAs set to ngForm"

Examples related to submit

React - clearing an input value after form submit angular2 submit form by pressing enter without submit button spark submit add multiple jars in classpath jQuery's .on() method combined with the submit event Selenium Webdriver submit() vs click() PHP form - on submit stay on same page Disable submit button ONLY after submit HTML - How to do a Confirmation popup to a Submit button and then send the request? HTML form with multiple "actions" Javascript change color of text and background to input value