Code
Execute
<!DOCTYPE html> <html> <body> <form action="demo_form.html"> Mail-ID: <input type="text" name="mail"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <input type="submit" value="Submit" formaction="demo_user.html" value="Submit as admin"> <input type="submit" formaction="demo_admin.html" value="Submit as admin"> </form> </body> </html>
Result